Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update kindlereader.py

enable parameter 'kindle_format'.

In previous version. Whatever value set to 'kindle_format',

Program just parse as 'book' but not 'periodical'.
  • Loading branch information...
commit 053fcf45cfdc01a386009db02aaca72c0095c4f1 1 parent 7961d51
wuyingbing wuyingbing authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 kindlereader.py
7 kindlereader.py
View
@@ -680,13 +680,14 @@ def main(self):
if updated_items > 0:
mail_enable = self.get_config('mail', 'mail_enable')
- mobi_file = self.make_mobi(user, updated_feeds)
-
+
kindle_format = self.get_config('general', 'kindle_format')
if kindle_format not in ['book', 'periodical']:
kindle_format = 'book'
-
+
+ mobi_file = self.make_mobi(user, updated_feeds, kindle_format)
+
if mobi_file and mail_enable == '1':
fp = open(mobi_file, 'rb')
self.sendmail(fp.read())
Please sign in to comment.
Something went wrong with that request. Please try again.