From: Oleg Broytman Date: Sun, 9 Jun 2013 22:24:53 +0000 (+0000) Subject: decode_list => decode_announce_list X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0b10392fde51531099483d664a3fd1a93ce39ff0;p=extfs.d.git decode_list => decode_announce_list git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@61 1a6e6372-1aea-0310-bd00-dc960550e1df --- diff --git a/torrent b/torrent index 0aec962..769d90c 100755 --- 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)