ускорил получение списка файлов

sandbox1
inpos 2016-03-12 02:28:40 +03:00
parent 1031f71364
commit fc0e69ab63
1 changed files with 3 additions and 2 deletions

View File

@ -157,14 +157,15 @@ class AnteoLoader:
files = []
filelist = []
with closing(self.engine):
self.engine.start()
#self.engine.start()
#media_types=[MediaType.VIDEO, MediaType.AUDIO, MediaType.SUBTITLES, MediaType.UNKNOWN]
iterator = 0
text = Localization.localize('Magnet-link is converting') if self.magnetLink\
else Localization.localize('Opening torrent file')
while not files and not xbmc.abortRequested and iterator < 100:
files = self.engine.list()
#files = self.engine.list()
files = self.engine.list_from_info()
#self.engine.check_torrent_error()
if len(files) == 0: break
if iterator==4: