Reading time: 1 min
URL_RSS="https://www.youtube.com/feeds/videos.xml?channel_id="
id="$(curl -s "$1" | sed -n 's#.*<link rel="canonical" href="https://www\.youtube\.com/channel/\([^"]\+\).*#\1#p')"
echo "$URL_RSS$id"
Usage: ~/p/ytrss/ytrss.sh <URL>
https://lbryfeed.melroy.org/channel/odysee/[channel-name]