mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 00:13:06 +02:00
GwR fix read/reading/unread symbol priority in Descriptions
This commit is contained in:
parent
f3e2b9f726
commit
2cea02ea4d
1 changed files with 5 additions and 7 deletions
|
|
@ -1322,15 +1322,13 @@ def generateHTMLDescriptions(self):
|
|||
self.generateAuthorAnchor(title['author']))
|
||||
aTag.insert(0, title['author'])
|
||||
|
||||
# This will include the reading progress dots even if we're not generating Recently Read
|
||||
if self.opts.connected_kindle and title['id'] in self.bookmarked_books:
|
||||
# Prefix author with read/reading/none symbol
|
||||
if title['read']:
|
||||
authorTag.insert(0, NavigableString(self.READ_SYMBOL + "by "))
|
||||
elif self.opts.connected_kindle and title['id'] in self.bookmarked_books:
|
||||
authorTag.insert(0, NavigableString(self.READING_SYMBOL + " by "))
|
||||
else:
|
||||
# Insert READ/NOT_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(0, NavigableString(self.NOT_READ_SYMBOL + "by "))
|
||||
authorTag.insert(1, aTag)
|
||||
|
||||
'''
|
||||
|
|
|
|||
Loading…
Reference in a new issue