]> git.phdru.name Git - extfs.d.git/commitdiff
Show publisher and publisher-url if they are available
authorOleg Broytman <phd@phdru.name>
Sun, 9 Jun 2013 23:15:11 +0000 (23:15 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Jun 2013 23:15:11 +0000 (23:15 +0000)
git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@63 1a6e6372-1aea-0310-bd00-dc960550e1df

torrent
torrent-ANNOUNCE

diff --git a/torrent b/torrent
index cfc1caa4ad0b6e6d7c3f94abe598501023ea6e89..6f1d91f49233c731d6f6f26c551714f80923de71 100755 (executable)
--- a/torrent
+++ b/torrent
@@ -123,7 +123,8 @@ def mctorrent_list():
 
     meta = []
     for name in 'announce', 'announce-list', 'codepage', 'comment', \
-                'created by', 'creation date', 'encoding':
+                'created by', 'creation date', 'encoding', \
+                'publisher', 'publisher-url':
         if name == 'comment' and 'comment.utf-8' in torrent:
             data = torrent['comment.utf-8'].decode('utf-8').encode(charset, 'replace')
             meta.append(('.META/' + name, len(data)))
@@ -156,7 +157,8 @@ def mctorrent_copyout():
     data = None
 
     for name in 'announce', 'announce-list', 'codepage', 'comment', \
-                'created by', 'creation date', 'encoding':
+                'created by', 'creation date', 'encoding', \
+                'publisher', 'publisher-url':
         if name == 'comment' and 'comment.utf-8' in torrent:
             data = torrent['comment.utf-8'].decode('utf-8').encode(charset, 'replace')
             meta.append(('.META/' + name, len(data)))
index e7979a3b2783fd4e1bbd5549be6ccb8d82f9e178..34f31c4be88720374d67516603fb1ea84a7f989c 100644 (file)
@@ -7,7 +7,8 @@ Midnight Commander.
 
 
 WHAT'S NEW in version 1.1.0 (2013-06-10)
-   Use name.utf-8 and path.utf-8 if those are available.
+   Show publisher and publisher-url if they are available.
+   Use name.utf-8, path.utf-8 and comment.utf-8 if those are available.
    Use codepage instead of encoding if codepage is available
    and encoding is not.