only cache if playability status ok
This commit is contained in:
parent
f96c012603
commit
3b3ab33b54
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue