icon fix and dl libtorr fix
parent
b58caf8854
commit
c63dde76e7
1049
.idea/workspace.xml
1049
.idea/workspace.xml
File diff suppressed because it is too large
Load Diff
3
Core.py
3
Core.py
|
@ -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:
|
||||
|
|
|
@ -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__
|
||||
|
||||
|
|
Loading…
Reference in New Issue