ソースを参照

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():


読み込み中…
キャンセル
保存