Quote:
Originally Posted by unkn0wn
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.
|
So has this code been added to the stock recipe, or do we have to create a custom recipe and add the code, which would mean the recipe might stop working if you update the stock recipe.
I used to, and sometimes still do, create custom recipes just to add code to "left align" text. But I keep getting frustrated by custom recipes no longer working after changes to the underlying stock recipe. Then I'd need to re-create a custom version of the stock recipe.
Some recipes left align text quite well, others don't. And justified text created by Calibre usually leaves huge gaps between words, making articles difficult to read or scan.
Sent from my SM-G986U1 using Tapatalk