mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c2278d2442
commit
1cf55c1fca
@ -39,7 +39,7 @@ def read_doc_props(raw, mi):
|
|||||||
for keywords in XPath('//cp:keywords')(root):
|
for keywords in XPath('//cp:keywords')(root):
|
||||||
if keywords.text and keywords.text.strip():
|
if keywords.text and keywords.text.strip():
|
||||||
for x in keywords.text.split():
|
for x in keywords.text.split():
|
||||||
tags.extend(y.strip() for y in x.split(','))
|
tags.extend(y.strip() for y in x.split(',') if y.strip())
|
||||||
if tags:
|
if tags:
|
||||||
mi.tags = tags
|
mi.tags = tags
|
||||||
authors = XPath('//dc:creator')(root)
|
authors = XPath('//dc:creator')(root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user