Added youtube api cache (optional)

This commit is contained in:
Joe Dowd
2020-09-08 17:37:29 +01:00
parent b79f740e2b
commit 9d94067cd0
9 changed files with 311 additions and 14 deletions

View File

@@ -8,6 +8,12 @@ YouTubeAPI.videos.list({
// https://developers.google.com/youtube/v3/docs/videos
const YouTubeAPI = {
listVideos: (id, part, callback) => {
YouTubeAPI.videos.list({
part: part,
id: id
}, callback);
},
videos: {
list: (obj, callback) => {
if (obj.id === "knownWrongID") {