From ad18f4e1d06bafbda8de28b61fa113fb68c9fe85 Mon Sep 17 00:00:00 2001 From: inpos Date: Thu, 17 Mar 2016 21:24:38 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=20=D1=81?= =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BA=D0=BE=D0=BC=20=D0=B4=D0=BE=D0=BB=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B2=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pyrrent2http/pyrrent2http.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index d38aebd..0d31248 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -783,22 +783,22 @@ class Pyrrent2http(object): def Status(self): info = self.TorrentFS.info #tstatus = self.torrentHandle.status() - tstatus = self.TorrentFS.handle.status() + #tstatus = self.TorrentFS.handle.status() status = { 'name' : info.name(), - 'state' : int(tstatus.state), - 'state_str' : str(tstatus.state), - 'error' : tstatus.error, - 'progress' : tstatus.progress, - 'download_rate' : tstatus.download_rate / 1024, - 'upload_rate' : tstatus.upload_rate / 1024, - 'total_download' : tstatus.total_download, - 'total_upload' : tstatus.total_upload, - 'num_peers' : tstatus.num_peers, - 'num_seeds' : tstatus.num_seeds, - 'total_seeds' : tstatus.num_complete, - 'total_peers' : tstatus.num_incomplete + 'state' : int(self.torrentHandle.status().state), + 'state_str' : str(self.torrentHandle.status().state), + 'error' : self.torrentHandle.status().error, + 'progress' : self.torrentHandle.status().progress, + 'download_rate' : self.torrentHandle.status().download_rate / 1024, + 'upload_rate' : self.torrentHandle.status().upload_rate / 1024, + 'total_download' : self.torrentHandle.status().total_download, + 'total_upload' : self.torrentHandle.status().total_upload, + 'num_peers' : self.torrentHandle.status().num_peers, + 'num_seeds' : self.torrentHandle.status().num_seeds, + 'total_seeds' : self.torrentHandle.status().num_complete, + 'total_peers' : self.torrentHandle.status().num_incomplete } return status def Ls(self):