From 0644eb36426e107adaf083852b71994c55abce93 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 8 Apr 2020 14:50:14 -0400 Subject: [PATCH] check if source_media_type exists - fixes channel pages not rendering --- lbrytv/src/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrytv/src/html.js b/lbrytv/src/html.js index 16be9f15f..a0316043a 100644 --- a/lbrytv/src/html.js +++ b/lbrytv/src/html.js @@ -66,7 +66,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) { let imageThumbnail; - if (Number(claim.fee) <= 0 && claim.source_media_type.startsWith('image/')) { + if (Number(claim.fee) <= 0 && claim.source_media_type && claim.source_media_type.startsWith('image/')) { imageThumbnail = generateStreamUrl(claim.name, claim.claim_id, undefined, undefined, true); } const claimThumbnail = escapeHtmlProperty(claim.thumbnail_url) || imageThumbnail || `${URL}/v1-og.png`;