From 1b4ec12d6d2d7770b55df90c0293a62471eb115f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Jan 2010 18:34:38 -0700 Subject: [PATCH] Fix #4650 (Comma in Tag information causes issues) --- src/calibre/ebooks/metadata/amazon.py | 1 + src/calibre/ebooks/metadata/google_books.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/amazon.py b/src/calibre/ebooks/metadata/amazon.py index e988fb8234..616185d5a6 100644 --- a/src/calibre/ebooks/metadata/amazon.py +++ b/src/calibre/ebooks/metadata/amazon.py @@ -63,6 +63,7 @@ def get_social_metadata(title, authors, publisher, isbn): mi.tags = [] for x in tags: mi.tags.extend([y.strip() for y in x.split('/')]) + mi.tags = [x.replace(',', ';') for x in mi.tags] comments = root.find('.//%s/%s'%(AWS('EditorialReview'), AWS('Content'))) if comments is not None: diff --git a/src/calibre/ebooks/metadata/google_books.py b/src/calibre/ebooks/metadata/google_books.py index a02e13add6..2705e3554e 100644 --- a/src/calibre/ebooks/metadata/google_books.py +++ b/src/calibre/ebooks/metadata/google_books.py @@ -143,7 +143,7 @@ class ResultList(list): except: report(verbose) tags = [] - return tags + return [x.replace(',', ';') for x in tags] def get_publisher(self, entry, verbose): try: