Interesting! You extract the ID from the link (e.g. the 1258545975
from https://podcasts.apple.com/us/podcast/citations-needed/id1258545975) and then:
$ curl -s 'https://itunes.apple.com/lookup?id=1258545975' | jq -r '.results.[0].feedUrl'
https://citationsneeded.libsyn.com/rss
$
#!/bin/sh # Get the original RSS feed URL from an Apple Podcast show URL. podcast="$1" id=$(echo "$podcast" | awk '{sub(/^.*\/id/, ""); print}') curl -s "https://itunes.apple.com/lookup?id=%24id" | jq -r '.results.[0].feedUrl'
There seems to be a bug in Lemmy that messes up the script’s rendering a little, but you’ll figure it out.