diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 29c3b83..ac8e95f 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -272,7 +272,10 @@ class TorrentFS(object): self.files = self.__files_() if startIndex < 0: 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: self.setPriority(i, 1) else: