Тест убран

sandbox1
inpos 2016-03-06 16:28:15 +03:00
parent f2788dc63c
commit 7e8efc570e
1 changed files with 3 additions and 4 deletions

View File

@ -677,12 +677,11 @@ class Pyrrent2http(object):
logging.info('Opening local torrent file: %s' % (absPath,))
with open(absPath, 'rb') as f:
btorrent_info = f.read()
logging.info(repr(btorrent_info))
dtorrent_info = lt.bdecode(btorrent_info)
logging.info(repr(dtorrent_info))
torrent_info = lt.torrent_info(dtorrent_info)
torrent_info = lt.torrent_info(lt.bdecode(btorrent_info))
except Exception as e:
strerror = e.args
if btorrent_info == '':
logging.error('Torrent-file is empty: %s' % (absPath,))
logging.error('Build torrent params error is (%s)' % (strerror,))
if STANDALONE:
sys.exit(1)