magnet fix
parent
c63dde76e7
commit
659b1c8889
|
@ -217,10 +217,14 @@ class AnteoLoader:
|
||||||
return hasher.hexdigest()
|
return hasher.hexdigest()
|
||||||
|
|
||||||
def magnetToTorrent(self, magnet):
|
def magnetToTorrent(self, magnet):
|
||||||
from Libtorrent import Libtorrent
|
try:
|
||||||
torrent = Libtorrent(self.storageDirectory, self.magnetLink)
|
from Libtorrent import Libtorrent
|
||||||
torrent.magnetToTorrent(self.magnetLink)
|
torrent = Libtorrent(self.storageDirectory, magnet)
|
||||||
self.torrentFile = torrent.torrentFile
|
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):
|
class AnteoPlayer(xbmc.Player):
|
||||||
__plugin__ = sys.modules["__main__"].__plugin__
|
__plugin__ = sys.modules["__main__"].__plugin__
|
||||||
|
|
Loading…
Reference in New Issue