diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-23 19:40:47 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-23 19:40:47 -0400 |
commit | 2edcfb8a755b7fec7f937f135c794cbadbe0c94e (patch) | |
tree | d437599c56cc26a7926dccb0c19d8bdd4bc904ef /src | |
parent | f5b17bf655ab93d3214ebd1eb7697dd21265d3b5 (diff) |
Error on api extra call fixed. Don't know why would it get called twice tho
Diffstat (limited to 'src')
-rw-r--r-- | src/server/youtubeApi/youtubeApiSample.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/youtubeApi/youtubeApiSample.js b/src/server/youtubeApi/youtubeApiSample.js index 9853241b6..ec532c78e 100644 --- a/src/server/youtubeApi/youtubeApiSample.js +++ b/src/server/youtubeApi/youtubeApiSample.js @@ -160,6 +160,9 @@ function getVideos(auth, args) { } function getVideoDetails(auth, args) { + if (args.videoIds === undefined) { + return; + } let service = google.youtube('v3'); service.videos.list({ auth: auth, |