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);
|
}))(videoData);
|
||||||
|
|
||||||
if (konfigStore.get("cache.enabled") == true) {
|
if (konfigStore.get("cache.enabled") == true && videoData.playabilityStatus?.status == "OK") {
|
||||||
(async () => {
|
(async () => {
|
||||||
await kv.set(
|
await kv.set(
|
||||||
["video_cache", videoId],
|
["video_cache", videoId],
|
||||||
|
|
Loading…
Add table
Reference in a new issue