From 13cee25cb5243f14001ea6c23b89400f92d9e461 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 11 Nov 2010 12:55:54 +0000 Subject: [PATCH] Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@46 1a6e6372-1aea-0310-bd00-dc960550e1df --- torrent | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- 2.39.5