From b05db2f5b64ba58d3aac6b9147e111c1e523c1f3 Mon Sep 17 00:00:00 2001 From: GRiker Date: Thu, 25 Feb 2010 07:08:01 -0700 Subject: [PATCH 1/3] GwR bookmark tweaks - add 'reading in progress' symbol --- src/calibre/library/catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index 7271d5af88..d53d985c62 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -1282,7 +1282,7 @@ class EPUB_MOBI(CatalogPlugin): result += "%04X %-*s %s\n" % (N, length*3, hexa, s) N+=length print result - + self.bookmarked_books = {} if self.opts.connected_kindle: self.opts.log.info(" Collecting Kindle bookmarks matching catalog entries") From b17053ac4f99afde0fd3e4b9f6cec25587df6d79 Mon Sep 17 00:00:00 2001 From: GRiker Date: Thu, 25 Feb 2010 07:09:43 -0700 Subject: [PATCH 2/3] GwR bookmark tweaks - add 'reading in progress' symbol --- src/calibre/library/catalog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index d53d985c62..72f00496e4 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -1282,7 +1282,7 @@ class EPUB_MOBI(CatalogPlugin): result += "%04X %-*s %s\n" % (N, length*3, hexa, s) N+=length print result - self.bookmarked_books = {} + if self.opts.connected_kindle: self.opts.log.info(" Collecting Kindle bookmarks matching catalog entries") @@ -1312,6 +1312,8 @@ class EPUB_MOBI(CatalogPlugin): break self.bookmarked_books = bookmarks + else: + self.bookmarked_books = {} def generateHTMLDescriptions(self): # Write each title to a separate HTML file in contentdir From 4c2480cbb0d3a798eca8329748b2627feff5088f Mon Sep 17 00:00:00 2001 From: GRiker Date: Thu, 25 Feb 2010 12:03:03 -0700 Subject: [PATCH 3/3] GwR change to --- src/calibre/library/catalog.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index 72f00496e4..aaa6e7c8a3 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -868,20 +868,20 @@ class EPUB_MOBI(CatalogPlugin): @dynamic_property def NOT_READ_SYMBOL(self): def fget(self): - return '' if self.generateForKindle else \ - '%s' % self.opts.read_tag + return '' if self.generateForKindle else \ + '%s' % self.opts.read_tag return property(fget=fget) @dynamic_property def READING_SYMBOL(self): def fget(self): - return '' if self.generateForKindle else \ - '%s' % self.opts.read_tag + return '' if self.generateForKindle else \ + '%s' % self.opts.read_tag return property(fget=fget) @dynamic_property def READ_SYMBOL(self): def fget(self): - return '' if self.generateForKindle else \ - '%s' % self.opts.read_tag + return '' if self.generateForKindle else \ + '%s' % self.opts.read_tag return property(fget=fget) @dynamic_property def FULL_RATING_SYMBOL(self):