mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
MOBI Input: Fix reading of tags stored in metadata in MOBI files
This commit is contained in:
parent
6c31b9aea9
commit
7a029e3d0e
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@ def process_metadata(self, id, content, codec):
|
|||
elif id == 105:
|
||||
if not self.mi.tags:
|
||||
self.mi.tags = []
|
||||
self.mi.tags.append(content.decode(codec, 'ignore'))
|
||||
self.mi.tags.extend([x.strip() for x in content.decode(codec,
|
||||
'ignore').split(';')])
|
||||
self.mi.tags = list(set(self.mi.tags))
|
||||
elif id == 106:
|
||||
try:
|
||||
self.mi.publish_date = datetime.datetime.strptime(
|
||||
|
|
|
|||
Loading…
Reference in a new issue