GwR fix read/reading/unread symbol priority in Descriptions

This commit is contained in:
GRiker 2010-03-16 11:44:13 -07:00
parent f3e2b9f726
commit 2cea02ea4d

View File

@ -1322,13 +1322,11 @@ class EPUB_MOBI(CatalogPlugin):
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:
authorTag.insert(0, NavigableString(self.READING_SYMBOL + " by "))
else:
# Insert READ/NOT_READ SYMBOL
# 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:
authorTag.insert(0, NavigableString(self.NOT_READ_SYMBOL + "by "))
authorTag.insert(1, aTag)