From 3b3ab33b54023064ca611f65ef791ab13391e49e Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:12:30 +0200 Subject: [PATCH] only cache if playability status ok --- src/lib/helpers/youtubePlayerHandling.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/helpers/youtubePlayerHandling.ts b/src/lib/helpers/youtubePlayerHandling.ts index f03aba9..77257d5 100644 --- a/src/lib/helpers/youtubePlayerHandling.ts +++ b/src/lib/helpers/youtubePlayerHandling.ts @@ -86,7 +86,7 @@ export const youtubePlayerParsing = async ( }, }))(videoData); - if (konfigStore.get("cache.enabled") == true) { + if (konfigStore.get("cache.enabled") == true && videoData.playabilityStatus?.status == "OK") { (async () => { await kv.set( ["video_cache", videoId],