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 06-28-2012, 11:42 PM   #1
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 176
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
Excluding articles

In the new york time recipe, there is

excludeSections =

Which makes me wonder if it is possible to exclude articles like that (when the title matches, the article is excluded? Say, if an article is titled "ABC" Is there something like

excludeArticles = ['ABC']

and this article (rather than the section) will be excluded from downloading (while an article called "ABC and D" will be kept even though ABC is included in the title.)

Thank you.
Steven630 is offline   Reply With Quote
Old 06-28-2012, 11:52 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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sure, you can do whatever you want in a recipe, since every aspect of the base class behavior can be changed by overriding the appropriate methods. IN this case you will need to override either parse_index or build_index or get_feed in your recipe, depending on how the list of articles is created.
kovidgoyal is offline   Reply With Quote
Advert
Old 06-29-2012, 01:49 AM   #3
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 176
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
Quote:
Originally Posted by kovidgoyal View Post
Sure, you can do whatever you want in a recipe, since every aspect of the base class behavior can be changed by overriding the appropriate methods. IN this case you will need to override either parse_index or build_index or get_feed in your recipe, depending on how the list of articles is created.
I don't really know how to do that. I'm tweaking with The Economist recipe and want to exclude the article entitled "Trade, exchange rates, budget balances and interest rates". Could you please tell me what I should do?
Steven630 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excluding terms in search LuvReadin Feedback 2 04-30-2012 11:44 AM
cant seem to keep my articles! marbs Recipes 2 11-18-2010 12:56 PM
Seriously thoughtful How many unread ebooks do you own? (excluding freebee's) Angst Lounge 23 06-18-2009 10:15 PM


All times are GMT -4. The time now is 08:50 AM.


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