Fix regression that caused the filename to not be set as the title when reading metadata fails

This commit is contained in:
Kovid Goyal 2010-09-28 19:03:54 -06:00
parent fce4ab97b6
commit 1c9335aa5e

View File

@ -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