From 3e8172af13d4754c9b9c7ee2741c75e518d2a93d Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Mon, 27 Sep 2021 12:40:06 -0400 Subject: [PATCH] force mp3 extension vs mpga --- web/src/rss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/rss.js b/web/src/rss.js index 910132529..1dfe52535 100644 --- a/web/src/rss.js +++ b/web/src/rss.js @@ -81,7 +81,7 @@ const generateEnclosureForClaimContent = (claim) => { case 'audio': return { - url: generateStreamUrl(claim.name, claim.claim_id) + (fileExt || '.mp3'), + url: generateStreamUrl(claim.name, claim.claim_id) + ((fileExt === '.mpga' ? '.mp3' : fileExt) || '.mp3'), type: (value.source && value.source.media_type) || 'audio/mpeg', size: (value.source && value.source.size) || 0, // Per spec, 0 is a valid fallback. };