View Single Post
Old 05-10-2023, 09:51 AM   #20
unkn0wn
Guru
unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.
 
Posts: 635
Karma: 85520
Join Date: May 2021
Device: kindle
Quote:
Originally Posted by dmac View Post

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.
Attached Files
File Type: recipe The Irish Times (free).recipe (3.4 KB, 126 views)

Last edited by unkn0wn; 05-10-2023 at 09:55 AM.
unkn0wn is offline   Reply With Quote