From af767a04b651cccfcc4e0c8fb8c20e54e88e3ffe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 31 Jan 2013 21:19:28 +0530 Subject: [PATCH] Metadata download: Only normalize title case if the result has no language set or its language is english --- src/calibre/ebooks/metadata/sources/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/metadata/sources/base.py b/src/calibre/ebooks/metadata/sources/base.py index e00c2e78d3..6ae4e540c5 100644 --- a/src/calibre/ebooks/metadata/sources/base.py +++ b/src/calibre/ebooks/metadata/sources/base.py @@ -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) # }}}