|
|
#1 |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
skip article? How is that possible in a recipe
I'm able to skip a article if the title contains some searched text, but is it also possible to
skip an article if the content contains special text? Is there anyone have a peace of code for that? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,597
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just call self.boart_article() inside any of the preporcess methods. https://manual.calibre-ebook.com/new....abort_article
|
|
|
|
|
|
#3 |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2013
Location: DE
Device: Linux PC's, Android devices, Amazon Fire HD10
|
Did you mean self.abort() ?
Have i use it like: self.abort('if this text is in the feed') |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,597
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.abort_article('some message')
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bloomberg Recipe - Only Renders First Article | papermadeblues | Recipes | 2 | 02-04-2023 01:00 AM |
| Single Article Recipe | yank | Recipes | 1 | 10-25-2018 09:06 AM |
| Recipe: download each article to its own book? | jgoguen | Development | 1 | 01-14-2014 09:39 PM |
| Skip sectoin TOC when it contains only one article | sup | Recipes | 2 | 10-30-2013 05:32 AM |
| Recipe for Wikipedia featured article | vietchovui | Recipes | 4 | 11-26-2011 12:36 PM |