Permalink
Browse files

Merge pull request #13 from wuyingbing/patch-1

Update kindlereader.py
  • Loading branch information...
2 parents 7961d51 + 053fcf4 commit 004a7ba84badf321e94347e382d516b15965f885 @dogear-cn committed Oct 31, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 kindlereader.py
View
7 kindlereader.py
@@ -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())

0 comments on commit 004a7ba

Please sign in to comment.