merged changes from RC_1_0

This commit is contained in:
Arvid Norberg
2014-11-19 09:23:08 +00:00
parent edfa38cd30
commit 3f61ee0ff3
10 changed files with 122 additions and 28 deletions

View File

@@ -229,8 +229,7 @@ def main():
if f.startswith('magnet:') or f.startswith('http://') or f.startswith('https://'):
atp["url"] = f
else:
e = lt.bdecode(open(f, 'rb').read())
info = lt.torrent_info(e)
info = lt.torrent_info(f)
print('Adding \'%s\'...' % info.name())
try: