only cache if playability status ok

This commit is contained in:
Emilien Devos 2024-10-21 13:12:30 +02:00
parent f96c012603
commit 3b3ab33b54

View file

@ -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],