icon fix and dl libtorr fix

pull/1/head
DiMartinoXBMC 2015-12-20 16:39:17 +03:00
parent b58caf8854
commit c63dde76e7
4 changed files with 512 additions and 544 deletions

File diff suppressed because it is too large Load Diff

View File

@ -133,7 +133,7 @@ class AnteoLoader:
keep_complete = True
keep_incomplete = True
dht_routers = ["router.bittorrent.com:6881","router.utorrent.com:6881"]
dht_routers = ["router.bittorrent.com:6881", "router.utorrent.com:6881"]
user_agent = 'uTorrent/2200(24683)'
self.engine = Engine(uri=file_url(self.torrentFile), download_path=self.storageDirectory,
connections_limit=connections_limit,

View File

@ -1620,6 +1620,7 @@ class Core:
Download().setprio(id, ind)
def downloadLibtorrent(self, params={}):
import Libtorrent
get = params.get
storage=get('storage')
if not storage: self.userStorage(params)
@ -1635,7 +1636,7 @@ class Core:
if classMatch:
searcher = classMatch.group(1)
url = Searchers().downloadWithSearcher(classMatch.group(2), searcher)
torrent = Downloader.Torrent(self.userStorageDirectory, torrentFilesDirectory=self.torrentFilesDirectory)
torrent = Libtorrent.Libtorrent(self.userStorageDirectory, torrentFilesDirectory=self.torrentFilesDirectory)
torrent.initSession()
encryption = self.__settings__.getSetting('encryption') == 'true'
if encryption:

View File

@ -46,7 +46,7 @@ ROOT = __settings__.getAddonInfo('path') # .decode('utf-8').encode(sys.getfiles
userStorageDirectory = __settings__.getSetting("storage")
USERAGENT = "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0"
__addonpath__ = __settings__.getAddonInfo('path')
icon = os.path.join(__addonpath__, '/icon.png')
icon = os.path.join(__addonpath__, 'icon.png')
__version__ = __settings__.getAddonInfo('version')
__plugin__ = __settings__.getAddonInfo('name') + " v." + __version__