Sfoglia il codice sorgente

Fix single-file torrents

master
JustAnotherArchivist 1 anno fa
parent
commit
232a430946
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. +5
    -2
      torrent-tiny

+ 5
- 2
torrent-tiny Vedi File

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


Caricamento…
Annulla
Salva