View Single Post
Old 02-29-2024, 01:06 AM   #6
unkn0wn
Evangelist
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 461
Karma: 82692
Join Date: May 2021
Device: kindle
yes, output profile needs to be kindle and I think you wouldn't need compression after this update.

I also face the title-date problem, especially when calibre shows that the mobi is already present when i connect my device, but then its the yesterdays mobi i left there to read.

set profile as kindle and use this code.. the titile will include date too.
Code:
    def __init__(self, *args, **kwargs):
        BasicNewsRecipe.__init__(self, *args, **kwargs)
	from datetime import date
        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')
            self.title = self.title + ' [' + date.today().strftime('%b %d, %Y') + ']'
we can add this code to all the recipes you mentioned.
unkn0wn is offline   Reply With Quote