mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-24 08:28:27 +03:00
Added youtube api cache (optional)
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user