Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-25-2018, 02:44 PM   #1
mgrmgrde
Member
mgrmgrde began at the beginning.
 
mgrmgrde's Avatar
 
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: Northern Germany
Device: kindle 3 iPhone 6+, Kindle HDX 8.9, Kindle paperwhite
Problems with own recipe


I have a couple of problems with a self written recipe for RSS-feeds

1. in the feed list there is a category-name and the url as u'' strings.
I'd like the category name omitted in the content-post if there are no articles in this category. Currently there are articles linked to some other categories, alternatively I'd post a self-supplied "no articles" article

2. In each article there is a text 'Category: ' with the category-name, directly followed by 'Added: " with the added timestamp and two other similar entries. I need these elements shown on separate lines (probably preceded by <br/>). I tried with the soup, raw_html - alas no success up to now

3. I want to embed an own picture for each category. Where to put the pictures and where to put/define the os-path to these pics?

The obvious method would be to expand the feed-parameters with a third param with the pic-name, but I guess the following changes would be numerous.

As the feed-urls are nearly identical; where to change to the resulting url when leaving out the identical parts???

TIA for ideas to solve my current problems.
mgrmgrde is offline   Reply With Quote
Old 08-25-2018, 11:51 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: 33,739
Karma: 10215946
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1. remove_empty_feeds = True

2. You can make any changes to article HTML you like by implementing preprocess_html in your recipe

3. Not sure what you mean by that. If you mean you want pictures in article or feed descriptions, that is not supported
kovidgoyal is offline   Reply With Quote
Advert
Old 08-26-2018, 07:03 AM   #3
mgrmgrde
Member
mgrmgrde began at the beginning.
 
mgrmgrde's Avatar
 
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: Northern Germany
Device: kindle 3 iPhone 6+, Kindle HDX 8.9, Kindle paperwhite
@Kovid:

so much
mgrmgrde is offline   Reply With Quote
Reply

Tags
calibre, recipes

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Politifact Recipe Problems grizliez Recipes 17 09-09-2011 03:09 PM
Recipe problems aessedai44 Recipes 0 10-27-2010 01:17 AM
Problems with economist recipe lady kay Calibre 1 08-06-2010 08:49 AM
Problems with Economist recipe 0.5.1 MTBSJC Calibre 7 03-23-2009 02:54 PM
Problems writing recipe kiklop74 Calibre 9 10-28-2008 07:58 PM


All times are GMT -4. The time now is 02:13 AM.


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