force mp3 extension vs mpga

This commit is contained in:
Thomas Zarebczan 2021-09-27 12:40:06 -04:00 committed by GitHub
parent 78d0ff9793
commit 3e8172af13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
};