diff --git a/lbrytv/src/html.js b/lbrytv/src/html.js index 2d88f4aac..16be9f15f 100644 --- a/lbrytv/src/html.js +++ b/lbrytv/src/html.js @@ -67,7 +67,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) { let imageThumbnail; if (Number(claim.fee) <= 0 && claim.source_media_type.startsWith('image/')) { - imageThumbnail = generateStreamUrl(claimName, claim.claim_id); + imageThumbnail = generateStreamUrl(claim.name, claim.claim_id, undefined, undefined, true); } const claimThumbnail = escapeHtmlProperty(claim.thumbnail_url) || imageThumbnail || `${URL}/v1-og.png`; diff --git a/ui/util/lbrytv.js b/ui/util/lbrytv.js index 80b4ded8a..2815a0b4f 100644 --- a/ui/util/lbrytv.js +++ b/ui/util/lbrytv.js @@ -4,9 +4,9 @@ const { getCookie, setCookie } = require('../../ui/util/saved-passwords'); const CONTINENT_COOKIE = 'continent'; -function generateStreamUrl(claimName, claimId, apiUrl, streamingContinent) { +function generateStreamUrl(claimName, claimId, apiUrl, streamingContinent, useDefaultServer) { let prefix = LBRY_TV_STREAMING_API || apiUrl; - const continent = streamingContinent || getCookie(CONTINENT_COOKIE); + const continent = useDefaultServer ? undefined : streamingContinent || getCookie(CONTINENT_COOKIE); if (continent && prefix.split('//').length > 1) { prefix = prefix.replace('//', '//' + continent + '.');