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)))
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)))
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.