From 9d12b044a8491b42ca0f8cc793dde8d2dfaa3371 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 4 Jan 2026 11:51:01 +0000 Subject: Remove podtrac redirect from direct audio link Audio links in the rss feed are of the form https://dts.podtrac.com/redirect.mp3/audioboom.com/posts/8819261.mp3?modified=1765821541&sid=5112392&source=rss I was already reamoving the query parameters, but I missed the dts.podtract.com/redirect.mp3. Remove that part too to get a direct link to the audio file. --- syndicate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syndicate.sh') diff --git a/syndicate.sh b/syndicate.sh index 80d1be0..4c7705a 100755 --- a/syndicate.sh +++ b/syndicate.sh @@ -84,7 +84,7 @@ function syndicate_podcast { name=$(xq --extract "/rss/channel/item/itunes:title" "${local_rss}") url="https://www.private-eye.co.uk/podcast/${most_recently_published_issue}" image=$(xq --extract "/rss/channel/item/itunes:image/@href" "${local_rss}") - audio=$(xq --extract "/rss/channel/item/enclosure/@url" "${local_rss}" | cut -d '?' -f 1) + audio=$(xq --extract "/rss/channel/item/enclosure/@url" "${local_rss}" | sed 's|dts.podtrac.com/redirect.mp3/||' | cut -d '?' -f 1) rm -f "${local_rss}" -- cgit v1.2.3