View Single Post
Old 07-25-2014, 09:19 AM   #1
steinarb
Enthusiast
steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.
 
Posts: 27
Karma: 53696
Join Date: Nov 2012
Device: Sony PRS T-1
Different keep_only_tags and remove_tags for different feeds

Is it possible to have different keep_only_tags and remove_tags for different feeds?

What is used for short bulletin news articles in two of the feeds (ie. all of the content in the feeds) is used as "see also" teasers in full-size articles in other feeds.

The recipe is here: https://github.com/steinarb/calibre-...ter/nrk.recipe

The element in question, is:
Code:
dict(name='article', attrs={'class':'teaser widget rich js-realtime emphasis-medium bulletin'}),
This element is the actual content of the feeds:
Code:
(u'NRK Østlandssendingen', u'http://www.nrk.no/ostlandssendingen/siste.rss'),
(u'NRK Nordland', u'http://www.nrk.no/nordland/siste.rss'),
But in the other feeds the same element is used for "see also" items (with no surrounding identifying element).
steinarb is offline   Reply With Quote