浏览代码

Fix single-file torrents

master
JustAnotherArchivist 1年前
父节点
当前提交
232a430946
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      torrent-tiny

+ 5
- 2
torrent-tiny 查看文件

@@ -151,8 +151,11 @@ def get_info_hash(fp):

def print_files(fp):
o = bdecode(fp)
for f in o['info']['files']:
print('/'.join(f['path']))
if 'files' in o['info']:
for f in o['info']['files']:
print('/'.join(f['path']))
else:
print(o['info']['name'])


def main():


正在加载...
取消
保存