From 05ec937b0622442f1a3774728d1ae9a23c161395 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 20 Jul 2021 13:54:30 -0400 Subject: [PATCH] Fix youtube api cache key --- src/utils/youtubeApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/youtubeApi.ts b/src/utils/youtubeApi.ts index eb4fa1e..e1ae38a 100644 --- a/src/utils/youtubeApi.ts +++ b/src/utils/youtubeApi.ts @@ -10,7 +10,7 @@ export class YouTubeAPI { return { err: "Invalid video ID" }; } - const cacheKey = `yt.newleaf.video.$[videoID}`; + const cacheKey = `yt.newleaf.video.${videoID}`; if (!ignoreCache) { try { const data = await DiskCache.get(cacheKey);