From 6ca59654baeceaa13f5c5637937bdffbe7d7b17a Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Tue, 24 Dec 2024 15:45:50 +0100 Subject: [PATCH] workaround issue with TV not returning any shortDescription --- src/lib/helpers/youtubePlayerHandling.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/helpers/youtubePlayerHandling.ts b/src/lib/helpers/youtubePlayerHandling.ts index a545e12..11b7ae3 100644 --- a/src/lib/helpers/youtubePlayerHandling.ts +++ b/src/lib/helpers/youtubePlayerHandling.ts @@ -45,6 +45,11 @@ export const youtubePlayerParsing = async ( const streamingData = video.streaming_data; + // WORKAROUND the issue with TV client not returning any short description + if (!videoData.videoDetails.shortDescription) { + videoData.videoDetails.shortDescription = ""; + } + // Modify the original YouTube response to include deciphered URLs if (streamingData && videoData && videoData.streamingData) { const ecatcherServiceTracking = videoData.responseContext