Fix youtube api cache key

This commit is contained in:
Ajay Ramachandran
2021-07-20 13:54:30 -04:00
parent 3c5a27d9f5
commit 05ec937b06

View File

@@ -10,7 +10,7 @@ export class YouTubeAPI {
return { err: "Invalid video ID" }; return { err: "Invalid video ID" };
} }
const cacheKey = `yt.newleaf.video.$[videoID}`; const cacheKey = `yt.newleaf.video.${videoID}`;
if (!ignoreCache) { if (!ignoreCache) {
try { try {
const data = await DiskCache.get(cacheKey); const data = await DiskCache.get(cacheKey);