View Single Post
Old 11-06-2010, 09:48 AM   #9
tylau0
Connoisseur
tylau0 began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Oct 2010
Device: Kindle
I finally work out a satifactory work-around.

In the news recipe that inherits from BasicNewsRecipe, override the function def create_opf(self, feeds, dir=None) with exactly the same content as in the base class http://calibre-ebook.com/user_manual...eeds/news.html, except the line

mi.publication_type = 'periodical:'+self.publication_type+':'+self.short _title()

Change it to

mi.publication_type = self.publication_type+':'+self.short_title()

The string "periodical" looks to be why the Kindle device treats the generated document as periodical rather than a book. Relevant Calibre source codes are at here and here.
tylau0 is offline   Reply With Quote