mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that caused the filename to not be set as the title when reading metadata fails
This commit is contained in:
parent
fce4ab97b6
commit
1c9335aa5e
@ -181,7 +181,7 @@ def metadata_from_filename(name, pat=None):
|
||||
mi.isbn = si
|
||||
except (IndexError, ValueError):
|
||||
pass
|
||||
if not mi.title:
|
||||
if mi.is_null('title'):
|
||||
mi.title = name
|
||||
return mi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user