RSS: change from 'download' to 'stream' url to pass Media Test

This apparently ensures the media is playable across all devices and apps.
This commit is contained in:
infinite-persistence 2021-08-02 15:25:47 +08:00 committed by Thomas Zarebczan
parent 0af1dfe282
commit f2e583f314

View file

@ -1,4 +1,4 @@
const { generateDownloadUrl } = require('../../ui/util/web');
const { generateStreamUrl } = require('../../ui/util/web');
const { URL, SITE_NAME, LBRY_WEB_API } = require('../../config.js');
const { Lbry } = require('lbry-redux');
const Rss = require('rss');
@ -70,7 +70,7 @@ const generateEnclosureForClaimContent = (claim) => {
case 'document':
case 'software':
return {
url: generateDownloadUrl(claim.name, claim.claim_id),
url: generateStreamUrl(claim.name, claim.claim_id),
type: (value.source && value.source.media_type) || undefined,
size: (value.source && value.source.size) || 0, // Per spec, 0 is a valid fallback.
};