From e33f9dc844cabc45048a0ccf453934b1fff5d6d9 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Mon, 6 Aug 2007 05:59:44 +0000 Subject: [PATCH] Pieces plugin fixes from eternalswd, thanks. --- plugins/TorrentPieces/tab_pieces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/TorrentPieces/tab_pieces.py b/plugins/TorrentPieces/tab_pieces.py index cebf553a6..a4b3b8b7e 100644 --- a/plugins/TorrentPieces/tab_pieces.py +++ b/plugins/TorrentPieces/tab_pieces.py @@ -112,7 +112,7 @@ class PiecesTabManager(object): def build_pieces_table(self, table): temp_prev_priority = 1 - if self.current_first_index == 0\ + if self.file_index == 0\ or self.current_first_index !=\ self.all_files[self.prev_file_index]['last_index']: #if first piece is not a shared piece @@ -216,7 +216,7 @@ class PiecesTabManager(object): self.peer_speed[main_index] = "unknown" def skip_current_file(self): - if self.current_first_index == 0\ + if self.file_index == 0\ or self.current_first_index !=\ self.all_files[self.prev_file_index]['last_index']: #if first piece is not shared