Skip to content

Commit

Permalink
force mp3 extension vs mpga
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarebczan authored Sep 27, 2021
1 parent 78d0ff9 commit 3e8172a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
};
Expand Down

0 comments on commit 3e8172a

Please sign in to comment.