mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 19:04:23 +01:00
Metadata download: Only normalize title case if the result has no language set or its language is english
This commit is contained in:
parent
3c0fa937a8
commit
af767a04b6
1 changed files with 4 additions and 2 deletions
|
|
@ -418,10 +418,12 @@ def clean_downloaded_metadata(self, mi):
|
|||
before putting the Metadata object into result_queue. You can of
|
||||
course, use a custom algorithm suited to your metadata source.
|
||||
'''
|
||||
if mi.title:
|
||||
docase = mi.language == 'eng' or mi.is_null('language')
|
||||
if docase and mi.title:
|
||||
mi.title = fixcase(mi.title)
|
||||
mi.authors = fixauthors(mi.authors)
|
||||
mi.tags = list(map(fixcase, mi.tags))
|
||||
if mi.tags and docase:
|
||||
mi.tags = list(map(fixcase, mi.tags))
|
||||
mi.isbn = check_isbn(mi.isbn)
|
||||
|
||||
# }}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue