mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -418,10 +418,12 @@ class Source(Plugin):
|
||||
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…
x
Reference in New Issue
Block a user