mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:13:15 +02:00
Catalog generation: Ignore tags with commas in them when generating genres
This commit is contained in:
parent
56adb9c679
commit
93157d253d
1 changed files with 4 additions and 1 deletions
|
|
@ -2698,7 +2698,10 @@ def _generate_html():
|
|||
for (i, tag) in enumerate(sorted(book.get('genres', []))):
|
||||
aTag = Tag(_soup, 'a')
|
||||
if self.opts.generate_genres:
|
||||
aTag['href'] = "Genre_%s.html" % self.genre_tags_dict[tag]
|
||||
try:
|
||||
aTag['href'] = "Genre_%s.html" % self.genre_tags_dict[tag]
|
||||
except KeyError:
|
||||
pass
|
||||
aTag.insert(0, escape(NavigableString(tag)))
|
||||
genresTag.insert(gtc, aTag)
|
||||
gtc += 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue