magnet fix

This commit is contained in:
DiMartinoXBMC committed 2015-12-20 16:50:25 +03:00
1 parent c63dde76e7
commit 659b1c8889
1 file changed
+8 -4
+8 -4
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__