Newsboat with images for youtube rss feeds using filters and an xsl stylesheet

2022/04/01 に公開
視聴回数 920
0
0
Newsboat can't display images and youtube rss feeds dont have an image in the description

But if we set the html-renderer and pager to w3m in the newsboat config and use newsboat filters with a script that runs xsltproc with an xsl stylesheet we can reformat the youtube rss feed to create a mini html page that has the youtube thumbnail, description with lines breaks and the view count and number of likes as well

newsboat images set up:
https://github.com/NapoleonWils0n/cerberus/blob/master/newsboat/youtube-newsboat/newsboat-youtube-xsl-stylesheet.org

youtube-rss script:
https://github.com/NapoleonWils0n/cerberus/blob/master/newsboat/youtube-newsboat/youtube-rss

youtube-rss.xsl stylesheet:
https://github.com/NapoleonWils0n/cerberus/blob/master/newsboat/youtube-newsboat/youtube-rss.xsl

newsboat config:
https://github.com/NapoleonWils0n/ubuntu-dotfiles/blob/master/.config/newsboat/config

newsboat urls:
https://github.com/NapoleonWils0n/ubuntu-dotfiles/blob/master/.config/newsboat/urls

w3m config files:
https://github.com/NapoleonWils0n/ubuntu-dotfiles/tree/master/.w3m

newsboat documentation:
https://newsboat.org/releases/2.27/docs/newsboat.html#_scripts_and_filters_snownews_extensions

atom2rss original script:
https://github.com/msharov/snownews/blob/9fb45e4cdf1cf9dea55b9af66c13a4c238809851/docs/filters/xsltproc/atom2rss