summaryrefslogtreecommitdiff
path: root/syndicate.sh
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2026-01-04 11:51:01 +0000
committerMatthew Fennell <matthew@fennell.dev>2026-01-04 11:51:01 +0000
commit9d12b044a8491b42ca0f8cc793dde8d2dfaa3371 (patch)
tree2e9cc78f7303c94b16c81f1261d6585f3043af3c /syndicate.sh
parentc7510f69196b09faa2338ad09eeec1e7b776e292 (diff)
Remove podtrac redirect from direct audio linkmain
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.
Diffstat (limited to 'syndicate.sh')
-rwxr-xr-xsyndicate.sh2
1 files changed, 1 insertions, 1 deletions
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}"