From b48f281c14ffc1a91ff09aa24fd9a2be950cbb94 Mon Sep 17 00:00:00 2001 From: inpos Date: Sat, 5 Mar 2016 02:44:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D1=83=D1=84=D0=B5=D1=80=20=D0=BA=D1=83=D1=81?= =?UTF-8?q?=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon.xml | 2 +- lib/pyrrent2http/engine.py | 2 +- lib/pyrrent2http/pyrrent2http.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index a029d36..33c1122 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/lib/pyrrent2http/engine.py b/lib/pyrrent2http/engine.py index 925d340..16ba6b5 100644 --- a/lib/pyrrent2http/engine.py +++ b/lib/pyrrent2http/engine.py @@ -17,7 +17,7 @@ from . import SessionStatus, FileStatus, PeerInfo, MediaType, Encryption from util import can_bind, find_free_port, ensure_fs_encoding import threading -LOGGING = True +LOGGING = False class Engine: """ diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 3a54a45..f4d8f38 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -95,7 +95,7 @@ if not hasattr(os, 'getppid'): ################################################################################# AVOID_HTTP_SERVER_EXCEPTION_OUTPUT = True -VERSION = "0.5.0" +VERSION = "0.6.0" USER_AGENT = "pyrrent2http/" + VERSION + " libtorrent/" + lt.version VIDEO_EXTS={'.avi':'video/x-msvideo','.mp4':'video/mp4','.mkv':'video/x-matroska', @@ -200,7 +200,7 @@ class TorrentFile(object): def waitForPiece(self, piece): def set_deadlines(p): next_piece = p + 1 - BUF_SIZE = 20 # количество блоковв буфере + BUF_SIZE = 2 # Лучшее враг хорошего for i in range(BUF_SIZE): if (next_piece + i < self.endPiece and not self.pieces_deadlined[(next_piece + i) - self.startPiece] and not self.havePiece(next_piece + i)):