Open kossmoboleat opened 4 years ago
I don't see why we couldn't, it looks to be a rather simple format that has a fair amount in common with our project. https://help.fivefilters.org/full-text-rss/site-patterns.html#pattern-format
body
is a simple xpathstrip
is just a cleanup xpathstrip_id_or_class
could be converted to a cleanup xpathstrip_image_src
could be converted to a cleanup xpathtidy
Boolean aligns with our own tidy optionmultipage
with recursive
set to falsenext_page_link
is multipage
with recursive
set to truereplace_string
is modify
with replace
date
and author
can probably be ignoredprune
incompatible with our set-upautodetect_on_failure
incompatible with our set-upAwesome idea, thanks for sharing @kossmoboleat. I will reuse these on other projects as well.
Btw: Any progress on this?
@GoodSoulGermany I had written a very basic parser but lost my work. But that was fairly simple to do. The difficulty is figuring out how to elegantly display the ability to add said filters.
I was already thinking of adding a category drop-down to the configuration tab's recipe import, so I might just stick it there.
*Edit: Although it is over 1000 entry's long so some form of search may be necessary
Work started, with the parser finished: https://github.com/feediron/ttrss_plugin-feediron/blob/dev/preftab/fi_fivefilters.php
Just need to integrate it with the recipe manager
cookies/headers support needs to be added as part of the retriever work https://github.com/feediron/ttrss_plugin-feediron/issues/44#issuecomment-870736101
Just an idea/feature request: Would it be possible to convert site-configs from https://github.com/fivefilters/ftr-site-config?
These already contain a lot of sites and very well made settings.