]> git.phdru.name Git - extfs.d.git/commitdiff
Fixed a bug.
authorOleg Broytman <phd@phdru.name>
Thu, 11 Nov 2010 12:55:54 +0000 (12:55 +0000)
committerOleg Broytman <phd@phdru.name>
Thu, 11 Nov 2010 12:55:54 +0000 (12:55 +0000)
git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@46 1a6e6372-1aea-0310-bd00-dc960550e1df

torrent

diff --git a/torrent b/torrent
index 825293bab59d1a601abb6cb72688c273ca7bc9e8..12310253730260f3217aafb8cd76a4bb2de7b534 100755 (executable)
--- 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')