Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update kindlereader.py #13

Merged
merged 1 commit into from

2 participants

@wuyingbing

enable parameter 'kindle_format'.

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

Program just parse as 'book' but not 'periodical'.

@wuyingbing wuyingbing Update kindlereader.py
enable parameter 'kindle_format'.

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

Program just parse as 'book' but not 'periodical'.
053fcf4
@jiedan
Owner

thx

@jiedan jiedan merged commit 004a7ba into jiedan:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 30, 2012
  1. @wuyingbing

    Update kindlereader.py

    wuyingbing authored
    enable parameter 'kindle_format'.
    
    In previous version. Whatever value set to 'kindle_format',
    
    Program just parse as 'book' but not 'periodical'.
This page is out of date. Refresh to see the latest.
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())
Something went wrong with that request. Please try again.