sandbox1
inpos 2016-03-17 19:43:10 +03:00
parent 7a180ad365
commit ce5e65cc10
1 changed files with 4 additions and 1 deletions

View File

@ -272,7 +272,10 @@ class TorrentFS(object):
self.files = self.__files_() self.files = self.__files_()
if startIndex < 0: if startIndex < 0:
logging.info('No -file-index specified, downloading will be paused until any file is requested') logging.info('No -file-index specified, downloading will be paused until any file is requested')
for i in range(self.info.num_files()): logging.info('Start getting num_files')
num_files = self.info.num_files()
logging.info('Snum_files is here')
for i in range(num_files):
if startIndex == i: if startIndex == i:
self.setPriority(i, 1) self.setPriority(i, 1)
else: else: