X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=torrent;fp=torrent;h=0aec962196e5f680dfeda399c7f19bbd3f260fd6;hp=309aada9421ffa9b9f7605c6e84c1945fba78a2b;hb=784c37ac12d1ea66878b95e2fb99a088ef0f54af;hpb=6c78b6d77f3553c4fba11612d677139ac8de43e2 diff --git a/torrent b/torrent index 309aada..0aec962 100755 --- a/torrent +++ b/torrent @@ -65,7 +65,7 @@ def mctorrent_list(): torrent_error('Info absent') info = torrent['info'] - if 'name' not in info or 'name.utf-8' not in info: + if 'name' not in info and 'name.utf-8' not in info: torrent_error('Unknown name') codepage = torrent.get('codepage', None) @@ -80,7 +80,7 @@ def mctorrent_list(): files = info['files'] paths = [] for file in files: - if 'path' not in file or 'path.utf-8' not in file: + if 'path' not in file and 'path.utf-8' not in file: torrent_error('Unknown path') if 'length' not in file: torrent_error('Unknown length')