From 8133d3eab9154eaec9cfb08ea7a1c39a190a926d Mon Sep 17 00:00:00 2001 From: inpos Date: Thu, 17 Mar 2016 22:07:13 +0300 Subject: [PATCH] . --- lib/pyrrent2http/pyrrent2http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 2062ef2..4811296 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -268,7 +268,7 @@ class TorrentFS(object): self.save_path = localize_path(self.root.torrentParams['save_path']) self.priorities = list(self.handle.file_priorities()) self.files = self.__files_() - self.handle.set_piece_deadline(self.files[startIndex].startPiece, 50) + #self.handle.set_piece_deadline(self.files[startIndex].startPiece, 50) if startIndex < 0: logging.info('No -file-index specified, downloading will be paused until any file is requested') @@ -375,7 +375,7 @@ class TorrentFS(object): tf.num = self.fileCounter tf.log('Opening %s...' % (tf.name,)) tf.SetPriority(1) - #self.handle.set_piece_deadline(tf.startPiece, 50) + self.handle.set_piece_deadline(tf.startPiece, 50) self.lastOpenedFile = tf self.addOpenedFile(tf) self.checkPriorities()