X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=torrent;h=12310253730260f3217aafb8cd76a4bb2de7b534;hp=825293bab59d1a601abb6cb72688c273ca7bc9e8;hb=13cee25cb5243f14001ea6c23b89400f92d9e461;hpb=f09a1d179bd8414db9d273264d81288cf3db5b05 diff --git a/torrent b/torrent index 825293b..1231025 100755 --- a/torrent +++ b/torrent @@ -71,10 +71,11 @@ def mctorrent_list(): torrent_error('Unknown name') name = info['name'] + encoding = torrent.get('encoding', None) + if 'files' in info: files = info['files'] paths = [] - encoding = torrent.get('encoding', None) for file in files: if 'path' not in file: torrent_error('Unknown path')