Merge handle epub iodentifier

This commit is contained in:
Ozzie Isaacs 2023-01-23 12:55:09 +01:00
commit 8dd4d0be1b
1 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,10 @@ def get_epub_info(tmp_file_path, original_file_name, original_file_extension):
identifiers = []
for node in p.xpath('dc:identifier', namespaces=ns):
identifier_name = node.attrib.values()[-1]
try:
identifier_name = node.attrib.values()[-1]
except IndexError:
continue
identifier_value = node.text
if identifier_name in ('uuid', 'calibre') or identifier_value is None:
continue