]> git.phdru.name Git - extfs.d.git/blobdiff - torrent
Show publisher and publisher-url if they are available
[extfs.d.git] / torrent
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)))