X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=torrent;fp=torrent;h=6f1d91f49233c731d6f6f26c551714f80923de71;hp=cfc1caa4ad0b6e6d7c3f94abe598501023ea6e89;hb=e5b111d6a9c777c1ac23945eaca7fc826a7eee1f;hpb=bda78424afb794c8ed4ac9b74c7f8639c8be3226 diff --git a/torrent b/torrent index cfc1caa..6f1d91f 100755 --- 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)))