From ce5e65cc104ce0e12634733a8bacd0b8e7006538 Mon Sep 17 00:00:00 2001 From: inpos Date: Thu, 17 Mar 2016 19:43:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B6=D1=83=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pyrrent2http/pyrrent2http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: