From f2e583f314292a85636e93193b43afbf4ec31249 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 2 Aug 2021 15:25:47 +0800 Subject: [PATCH] RSS: change from 'download' to 'stream' url to pass Media Test This apparently ensures the media is playable across all devices and apps. --- web/src/rss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/rss.js b/web/src/rss.js index 9bd1a07b7..714d9a448 100644 --- a/web/src/rss.js +++ b/web/src/rss.js @@ -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. };