From 7401a590cc10bc29449c11ac838924f63227ce97 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 8 Apr 2020 13:43:29 -0400 Subject: [PATCH] Revert "fix streamUrl creation" This reverts commit 338f7be78e29239c1b163a1074549dff0634f032. --- lbrytv/src/html.js | 2 +- ui/util/lbrytv.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lbrytv/src/html.js b/lbrytv/src/html.js index 16be9f15f..2d88f4aac 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(claim.name, claim.claim_id, undefined, undefined, true); + imageThumbnail = generateStreamUrl(claimName, claim.claim_id); } const claimThumbnail = escapeHtmlProperty(claim.thumbnail_url) || imageThumbnail || `${URL}/v1-og.png`; diff --git a/ui/util/lbrytv.js b/ui/util/lbrytv.js index 2815a0b4f..80b4ded8a 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, useDefaultServer) { +function generateStreamUrl(claimName, claimId, apiUrl, streamingContinent) { let prefix = LBRY_TV_STREAMING_API || apiUrl; - const continent = useDefaultServer ? undefined : streamingContinent || getCookie(CONTINENT_COOKIE); + const continent = streamingContinent || getCookie(CONTINENT_COOKIE); if (continent && prefix.split('//').length > 1) { prefix = prefix.replace('//', '//' + continent + '.');