magnet fix

pull/1/head
DiMartinoXBMC 2015-12-20 16:50:25 +03:00
parent c63dde76e7
commit 659b1c8889
1 changed files with 8 additions and 4 deletions

View File

@ -217,10 +217,14 @@ class AnteoLoader:
return hasher.hexdigest()
def magnetToTorrent(self, magnet):
from Libtorrent import Libtorrent
torrent = Libtorrent(self.storageDirectory, self.magnetLink)
torrent.magnetToTorrent(self.magnetLink)
self.torrentFile = torrent.torrentFile
try:
from Libtorrent import Libtorrent
torrent = Libtorrent(self.storageDirectory, magnet)
torrent.magnetToTorrent(self.magnetLink)
self.torrentFile = torrent.torrentFile
except:
self.torrentFile = self.magnetLink
log('[AnteoLoader][magnetToTorrent]: self.torrentFile '+str(self.torrentFile))
class AnteoPlayer(xbmc.Player):
__plugin__ = sys.modules["__main__"].__plugin__