소스 검색

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


불러오는 중...
취소
저장