mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 20:35:33 +01:00
...
This commit is contained in:
parent
d0ea6b31c4
commit
24ece3b623
1 changed files with 4 additions and 4 deletions
|
|
@ -108,11 +108,11 @@ def upgrade_date(root, data):
|
|||
if not val:
|
||||
remove_element(date, data.refines)
|
||||
continue
|
||||
if not found:
|
||||
found = True
|
||||
continue
|
||||
if not val or found: # only one dc:date allowed
|
||||
if found:
|
||||
# only one dc:date allowed
|
||||
remove_element(date, data.refines)
|
||||
else:
|
||||
found = True
|
||||
|
||||
|
||||
def upgrade_rating(root, data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue