mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:43:38 +02:00
...
This commit is contained in:
parent
d821086eeb
commit
a918726301
1 changed files with 4 additions and 3 deletions
|
|
@ -81,9 +81,10 @@ def serialize_xmp_packet(root, encoding='utf-8'):
|
|||
|
||||
def read_simple_property(elem):
|
||||
# A simple property
|
||||
if elem.text:
|
||||
return elem.text
|
||||
return elem.get(expand('rdf:resource'), '')
|
||||
if elem is not None:
|
||||
if elem.text:
|
||||
return elem.text
|
||||
return elem.get(expand('rdf:resource'), '')
|
||||
|
||||
def read_lang_alt(parent):
|
||||
# A text value with possible alternate values in different languages
|
||||
|
|
|
|||
Loading…
Reference in a new issue