MOBI Input: Preserve the dc:rights metadata during conversion. Fixes #1333468 [dc:rights element removed from opf](https://bugs.launchpad.net/calibre/+bug/1333468)

This commit is contained in:
Kovid Goyal 2014-06-24 10:05:49 +05:30
parent ffde0ca388
commit bca2e2ad7e

View File

@ -125,6 +125,8 @@ class EXTHHeader(object): # {{{
pass
elif idx == 108:
self.mi.book_producer = clean_xml_chars(self.decode(content).strip())
elif idx == 109:
self.mi.rights = clean_xml_chars(self.decode(content).strip())
elif idx == 112: # dc:source set in some EBSP amazon samples
try:
content = content.decode(codec).strip()