From: Oleg Broytman Date: Sun, 9 Jun 2013 20:46:00 +0000 (+0000) Subject: Fixed minor bugs X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=784c37ac12d1ea66878b95e2fb99a088ef0f54af;p=extfs.d.git Fixed minor bugs git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@60 1a6e6372-1aea-0310-bd00-dc960550e1df --- 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')