]> git.phdru.name Git - extfs.d.git/commitdiff
decode_list => decode_announce_list
authorOleg Broytman <phd@phdru.name>
Sun, 9 Jun 2013 22:24:53 +0000 (22:24 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Jun 2013 22:24:53 +0000 (22:24 +0000)
git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@61 1a6e6372-1aea-0310-bd00-dc960550e1df

torrent

diff --git a/torrent b/torrent
index 0aec962196e5f680dfeda399c7f19bbd3f260fd6..769d90c3870e75a362e71fd549dedc96df8e836d 100755 (executable)
--- a/torrent
+++ b/torrent
@@ -126,7 +126,7 @@ def mctorrent_list():
                 'created by', 'creation date', 'encoding':
         if name in torrent:
             if name == 'announce-list':
-                data = decode_list(torrent[name])
+                data = decode_announce_list(torrent[name])
             elif name == 'codepage':
                 data = str(torrent[name])
             elif name == 'creation date':
@@ -157,7 +157,7 @@ def mctorrent_copyout():
         if torrent_filename == '.META/' + name:
             if name in torrent:
                 if name == 'announce-list':
-                    data = decode_list(torrent[name])
+                    data = decode_announce_list(torrent[name])
                 elif name == 'codepage':
                     data = str(torrent[name])
                 elif name == 'creation date':
@@ -226,7 +226,7 @@ def decode_datetime(dt):
     l_now = localtime(the_time)
     return asctime(l_now)
 
-def decode_list(announce):
+def decode_announce_list(announce):
     return '\n'.join(l[0] for l in announce)