Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2018, 01:35 PM   #1
kindle87
Junior Member
kindle87 began at the beginning.
 
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
kindle87 is offline   Reply With Quote
Old 04-23-2018, 08:38 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,852
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 04-24-2018, 05:59 AM   #3
bobbysteel
Big Poppa
bobbysteel began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
Quote:
Originally Posted by kindle87 View Post
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
The best way to learn is look at well used and highly maintained recipes like the NY Times, Economist and see how they do it.
https://calibre-ebook.com/dynamic/recipe-usage

(though @Kovid, what is #3?)
bobbysteel is offline   Reply With Quote
Old 04-24-2018, 06:28 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@bobbysteel: See for example the handelsblatt recipe
kovidgoyal is online now   Reply With Quote
Reply

Tags
beginner, recipe, rss, video


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add multiple books per directory with extension filter? anthonyr Calibre 3 03-27-2015 08:08 AM
Automatically receive RSS feeds? thesandman Kindle Developer's Corner 13 08-19-2013 09:34 PM
How to add the cover to HTML and CBZ sources (the recipe) c.kruk Calibre 0 02-21-2012 04:23 PM
Add 'Title' to Category Filter artkaye Library Management 0 09-05-2011 08:52 AM
spiegelde.recipe: add cover miwie Recipes 0 11-20-2010 08:58 AM


All times are GMT -4. The time now is 12:33 AM.


MobileRead.com is a privately owned, operated and funded community.