feediron / ttrss_plugin-feediron

Evolution of ttrss_plugin-af_feedmod
https://discourse.tt-rss.org/t/plugin-update-feediron-v1-2-0/2018
MIT License
204 stars 34 forks source link

Run filters on article stub #183

Open Organizer21 opened 1 year ago

Organizer21 commented 1 year ago

Latest feediron running on TT v22.09-d47b8c8

I got several sites where I need to manipulate the feed content before it's being parsed. I thought I could use feediron, but I might be wrong or might just be very bad at reading instructions and seeing the logic.

So I have several REGEX rules I want to trigger on spesific FEEDS, making changes to the source before it's parsed (sometimes within the CONTENT element, or replacing parts in the LINK or even changes to the strucure itself). I thought something like this would work but at least I can't get any RESULT in the TESTING tab to confirm that. Can this be done?

"domain.tld": {
        "type": "xpath",
        "xpath": "article",
        "reformat": [
            {
                "type": "regex",
                "pattern": "<ul>.<li>.*?</ul>#s",
                "replace": ""
            }
        ]
    }
dugite-code commented 1 year ago

I THINK you're wanting to manipulate the article stub in the feed correct? Currently Feediron isn't able to do this. I've bben wanting to implement it as part of the Execution order changes I started tinkering with in https://github.com/feediron/ttrss_plugin-feediron/issues/120

My free time hasn't been what it used to be. That said I expect I'll have a chunk of time in the coming months to jump back into working on the project.