From 82ba86835736b163704068c30c19290c084da692 Mon Sep 17 00:00:00 2001 From: Denis Utkin Date: Wed, 1 Jan 2025 23:31:45 +0100 Subject: [PATCH] fixed "error.api.fetch.critical" an error with "youtube" cookies --- api/src/processing/services/youtube.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index 6559978c..b23f16a8 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -497,6 +497,9 @@ export default async function (o) { if (innertubeClient === "WEB" && innertube) { video = video.decipher(innertube.session.player); audio = audio.decipher(innertube.session.player); + } else if (video.url && audio.url) { + video = video.url; + audio = audio.url; } }