workaround issue with TV not returning any shortDescription

This commit is contained in:
Emilien Devos 2024-12-24 15:45:50 +01:00
parent 7c0e26f7f8
commit 6ca59654ba

View file

@ -45,6 +45,11 @@ export const youtubePlayerParsing = async (
const streamingData = video.streaming_data; 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 // Modify the original YouTube response to include deciphered URLs
if (streamingData && videoData && videoData.streamingData) { if (streamingData && videoData && videoData.streamingData) {
const ecatcherServiceTracking = videoData.responseContext const ecatcherServiceTracking = videoData.responseContext