sandbox1
inpos 2016-03-17 20:22:07 +03:00
parent 2c3f0e5b9b
commit ac20a99da7
1 changed files with 7 additions and 8 deletions

View File

@ -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,