Quote:
Originally Posted by dmac
|

It looks like you are having trouble with MOBI file, the article pages won't open in your kindle. The output for this recipe is almost 30mb in epub (maybe images are too large).
change
max_articles_per_feed = 10 and check.
I think we can compress images. They already get compressed if output is some kindle, better make it the basic 'kindle' and not paperwhite or others.
add below to the code.
Code:
def __init__(self, *args, **kwargs):
BasicNewsRecipe.__init__(self, *args, **kwargs)
if self.output_profile.short_name.startswith('kindle'):
# Reduce image sizes to get file size below amazon's email
# sending threshold
self.web2disk_options.compress_news_images = True
self.web2disk_options.compress_news_images_auto_size = 5
self.log.warn('Kindle Output profile being used, reducing image quality to keep file size below amazon email threshold')
attached recipe with changes.