Always apply title case to downloaded metadata - tired of crap metadata sources with 99% lowercase characters

This commit is contained in:
ldolse 2011-01-24 12:22:42 +08:00
parent 6e64f5ec4e
commit 1e675af91a

View File

@ -411,7 +411,7 @@ def search(title=None, author=None, publisher=None, isbn=None, isbndb_key=None,
r.pubdate = pubdate r.pubdate = pubdate
def fix_case(x): def fix_case(x):
if x and x.isupper(): if x:
x = titlecase(x) x = titlecase(x)
return x return x