FeedIron custom recipes for embedded videos in RSS

Date: 2021-04-16 (last update: 2021-08-03)

Description: Custom recipes for embedded videos with TTRSS's FeedIron plugin.

TTRSS is a great choice to read RSS feeds in your browser or on other devices. It offers an plugin system with lots of tools to create your perfect RSS feed. FeedIron is such a plugin, it can refine RSS feeds with additional information, which are not included by default. For example, FeedIron can include custom HTML elements into the feed description like an embedded videos. There is an official repository with custom recipes and on this page some more configs for FeedIron are shared.

LBRY / Odysee

Odysee requires a RSS bridge service to generate RSS feeds: LBRY RSS Feed service. Use the feed for Odysee.com links.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    "odysee.com": {
        "type": "xpath",
        "xpath": [
            "\/html\/head\/meta[contains(@name,'description')]",
            "\/html\/head\/meta[contains(@property,'og:url')]",
            "\/html\/head\/meta[contains(@name,'twitter:image')]"
        ],
        "modify": [
            {
                "type": "replace",
                "search": "<meta name=\"description\" content=\"",
                "replace": "<p>"
            },
            {
                "type": "replace",
                "search": "...\"\/>",
                "replace": "...<\/p>"
            },
            {
                "type": "regex",
                "pattern": [
                    "<meta property=\"og:url\" content=\"[-',!\\w\u00fc\u00e4\u00f6:\/\\.-]+:(\\w+)\"\/>"
                ],
                "replace": [
                    "video width='640' height='385' preload='none' src='https:\/\/cdn.lbryplayer.xyz\/api\/v4\/streams\/free\/a\/$1\/123456' controls"
                ]
            },
            {
                "type": "regex",
                "pattern": [
                    "<meta name=\"twitter:image\" content=\"([-\\w:\\\/\\.]+)\"\/>"
                ],
                "replace": [
                    " poster='$1' \/"
                ]
            },
            {
                "type": "replace",
                "search": [
                    "controls>< poster"
                ],
                "replace": [
                    "controls poster"
                ]
            }
        ]
    }

PeerTube

Here customized for the instance of peervideo.club.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    "peervideo.club": {
        "type": "xpath",
        "xpath": [
            "\/html\/head\/meta[18]",
            "\/html\/head\/meta[12]"
        ],
        "replace-tags": true,
        "modify": [
            {
                "type": "replace",
                "search": "<meta property=\"description\" content=\"",
                "replace": "<p>"
            },
            {
                "type": "replace",
                "search": "<meta property=\"og:video:url\" content",
                "replace": "<iframe allow='fullscreen' width='560' height='315' src"
            },
            {
                "type": "replace",
                "search": "\"\/><iframe",
                "replace": "<\/p><iframe"
            },
            {
                "type": "replace",
                "search": "\"\/>",
                "replace": "\"><\/iframe>"
            }
        ]
    }

Bitchute

1
2
3
    "bitchute.com": {
        "type": "xpath"
    }