From ac20a99da7a47b09a8257580c467d20147119578 Mon Sep 17 00:00:00 2001 From: inpos Date: Thu, 17 Mar 2016 20:22:07 +0300 Subject: [PATCH] . --- lib/pyrrent2http/pyrrent2http.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index c030cc1..b636a37 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -783,16 +783,15 @@ class Pyrrent2http(object): logging.info('Encryption not supported: %s' % (e.args,)) def Status(self): - logging.info('++++++++++ entering status') - try: - info = self.torrentHandle.torrent_file() - except: - info = self.torrentHandle.get_torrent_info() - logging.info('+++++getting h.status') + #try: + # info = self.torrentHandle.torrent_file() + #except: + # info = self.torrentHandle.get_torrent_info() tstatus = self.torrentHandle.status() - logging.info('h.status is here') + status = { - 'name' : info.name(), + # 'name' : info.name(), + 'name' : self.TorrentFS.name.split('/')[-1], 'state' : int(tstatus.state), 'state_str' : str(tstatus.state), 'error' : tstatus.error,