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

No type defined! error #185

Closed ronajon closed 1 year ago

ronajon commented 1 year ago

running tt-rss v22.12-fb4bc26 in a docker environment.

testing https://xkcd.com/rss.xml with configuration below gives an error "No type defined!" i followed all steps to install the plugin within he docker

{
    "xkcd.com": {
        "type": "xpath",
        "xpath": [
            "div[contains(@id,'comic')]",
            "div[contains(@id,'comic')]\/\/img\/@title"
        ],
        "join_element": "<p>"
    },
    "xkcd.com_orig": {
        "type": "xpath",
        "xpath": [
            "div[contains(@id,'comic')]",
            "div[contains(@id,'comic')]\/\/img\/@title"
        ],
        "join_element": "<p>"
    }
}
dugite-code commented 1 year ago

With the testing window you can't use the url element in the config. Additional it will only accept a single config at a time

eg:

{
        "type": "xpath",
        "xpath": [
            "div[contains(@id,'comic')]",
            "div[contains(@id,'comic')]\/\/img\/@title"
        ],
        "join_element": "<p>"
    }

Also do not use the https://xkcd.com/rss.xml url when testing, you need to use a direct article url like https://xkcd.com/2724/

image

ronajon commented 1 year ago

thx, that solved my issue