From efbfd8beff4a4f9084422810144a0b0cb004307d Mon Sep 17 00:00:00 2001 From: inpos Date: Sat, 19 Mar 2016 22:14:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D1=87=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pyrrent2http/pyrrent2http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 13aecff..ee50ec1 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -267,12 +267,13 @@ class TorrentFS(object): self.waitForMetadata() self.save_path = localize_path(self.root.torrentParams['save_path']) self.priorities = list(self.handle.file_priorities()) + self.files = {} num_files = self.info.num_files() for i in range(num_files): self.setPriority(i, 0) def file(self, index): file_ = self.__file_at_(index) - self.files = {file_.name: file_} + self.files[file_.name] = file_ #self.handle.set_piece_deadline(self.files[startIndex].startPiece, 50) self.setPriority(index, 1) return file_