mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
be37ccfb56
commit
3105d2bd32
@ -36,7 +36,10 @@ def norm_title(title):
|
||||
return normalize_entities(normalize_spaces(title))
|
||||
|
||||
def get_title(doc):
|
||||
try:
|
||||
title = doc.find('.//title').text
|
||||
except AttributeError:
|
||||
title = None
|
||||
if not title:
|
||||
return '[no-title]'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user