fast filelist

pull/1/head
DiMartinoXBMC 2016-03-12 12:17:00 +03:00
parent b9740e04f8
commit acce52d081
1 changed files with 8 additions and 0 deletions

View File

@ -153,6 +153,14 @@ class AnteoLoader:
return string return string
def getContentList(self): def getContentList(self):
try:
from Libtorrent import Libtorrent
torrent = Libtorrent(self.storageDirectory, self.torrentFile)
return torrent.getContentList()
except:
return self.getContentList_engine()
def getContentList_engine(self):
self.setup_engine() self.setup_engine()
files = [] files = []
filelist = [] filelist = []