Fix #4650 (Comma in Tag information causes issues)

This commit is contained in:
Kovid Goyal 2010-01-24 18:34:38 -07:00
parent b97960e310
commit 1b4ec12d6d
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ def get_social_metadata(title, authors, publisher, isbn):
mi.tags = [] mi.tags = []
for x in tags: for x in tags:
mi.tags.extend([y.strip() for y in x.split('/')]) 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'), comments = root.find('.//%s/%s'%(AWS('EditorialReview'),
AWS('Content'))) AWS('Content')))
if comments is not None: if comments is not None:

View File

@ -143,7 +143,7 @@ class ResultList(list):
except: except:
report(verbose) report(verbose)
tags = [] tags = []
return tags return [x.replace(',', ';') for x in tags]
def get_publisher(self, entry, verbose): def get_publisher(self, entry, verbose):
try: try: