mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Added read checkmark to Description page, fixed note prefix len
This commit is contained in:
parent
526e7198d7
commit
643f60f6e9
@ -1138,7 +1138,12 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
aTag['href'] = "%s.html#%s" % ("ByAlphaAuthor", self.generateAuthorAnchor(title['author']))
|
aTag['href'] = "%s.html#%s" % ("ByAlphaAuthor", self.generateAuthorAnchor(title['author']))
|
||||||
#aTag.insert(0, escape(title['author']))
|
#aTag.insert(0, escape(title['author']))
|
||||||
aTag.insert(0, title['author'])
|
aTag.insert(0, title['author'])
|
||||||
authorTag.insert(0, NavigableString("by "))
|
|
||||||
|
# Insert READ_SYMBOL
|
||||||
|
if title['read']:
|
||||||
|
authorTag.insert(0, NavigableString(self.READ_SYMBOL + "by "))
|
||||||
|
else:
|
||||||
|
authorTag.insert(0, NavigableString(self.NOT_READ_SYMBOL + "by "))
|
||||||
authorTag.insert(1, aTag)
|
authorTag.insert(1, aTag)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
@ -3054,7 +3059,7 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
for tag in tags:
|
for tag in tags:
|
||||||
tag = self.convertHTMLEntities(tag)
|
tag = self.convertHTMLEntities(tag)
|
||||||
if tag.startswith(opts.note_tag):
|
if tag.startswith(opts.note_tag):
|
||||||
this_title['notes'] = tag[1:]
|
this_title['notes'] = tag[len(self.opts.note_tag):]
|
||||||
elif tag == opts.read_tag:
|
elif tag == opts.read_tag:
|
||||||
this_title['read'] = True
|
this_title['read'] = True
|
||||||
elif re.search(opts.exclude_genre, tag):
|
elif re.search(opts.exclude_genre, tag):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user