Quote:
Originally Posted by Robert78
I have some epubs with the same ad on several pages.
I'd like to get rid of them by selecting multiple books and indicating the file name to delete. Once files deleting, I'd like to have an automatic repair task to clean the dead links to the image. At the same time, external links (twitter...) could be also deleted.
today, I can do it manually, book after book and it's very slow :
1) book selection
2) edit book
3) report
4) image selection
5) image deletion
6) check and repair
Is there a way to automate this. Can a plugin do it ?
thanks a lot for your help
|
You do not need step 3.
What I do is delete all HTML I don't want including the ads, internal ToC, previews, copyright notice, list of the authors other books, reviews of the book, and any other rubbish. Then I check the book using Calibre's error check. I delete any unused graphics as reported. Then I remove unused CSS and Lossless compress the graphics. This fixes the steps you left out. Your way you could end up with HTML that's mostly blank because you got rid of the advert graphics. By deleting the entire HTML, you can then get rid of the graphics no longer used and also have a smaller ePub.
As for automating this, there is no way to do that.