|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Apr 2018
Device: kindle paperwhite
|
First recipe: how to automatically add cover and filter out videos from RSS
Hi, I'm completely new to writing recipes and would much appreciate any help with the following:
1) Is there a course in writing calibre recipes for beginners? 2) How do I automatically add a cover to a book downloaded via a recipe? 3) Is there a way to filter out posts with videos from an RSS I'm using for my recipe? NB Sorry if I've missed an existing thread on the issues mentioned here, please direct me to one if you know any. Many thanks |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,854
Karma: 26594666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1. https://manual.calibre-ebook.com/news.html is the closest
2. Set cover_url in the recipe to point to the location of the cover image 3. If the video articles have a recognizable URL (i.e. is they have something like /video/ in them you can implement the print_version() method in your recipe and return None for the URL. Otherwise implement preprocess_soup() in your recipe, look for the video tag and call self.abort_article() when detected. |
![]() |
![]() |
![]() |
#3 | |
Big Poppa
![]() Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
|
Quote:
https://calibre-ebook.com/dynamic/recipe-usage (though @Kovid, what is #3?) |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,854
Karma: 26594666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@bobbysteel: See for example the handelsblatt recipe
|
![]() |
![]() |
![]() |
Tags |
beginner, recipe, rss, video |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add multiple books per directory with extension filter? | anthonyr | Calibre | 3 | 03-27-2015 09:08 AM |
Automatically receive RSS feeds? | thesandman | Kindle Developer's Corner | 13 | 08-19-2013 10:34 PM |
How to add the cover to HTML and CBZ sources (the recipe) | c.kruk | Calibre | 0 | 02-21-2012 05:23 PM |
Add 'Title' to Category Filter | artkaye | Library Management | 0 | 09-05-2011 09:52 AM |
spiegelde.recipe: add cover | miwie | Recipes | 0 | 11-20-2010 09:58 AM |