aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-22 18:47:14 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-22 18:47:14 -0400
commit4446a3a52c4cf4b03c201ab2d6a9179647686e40 (patch)
tree960914ad762daf0f7a51f55154c2fadd48bc5d92 /src/server/index.ts
parentde7176884493c79ba11ecd871c3b444d36165367 (diff)
Pulled Duration and ViewCount details, Need to csss duration
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 60e34de8c..dfbc1a468 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -537,6 +537,8 @@ function HandleYoutubeQuery([query, callback]: [YoutubeQueryInput, (result?: any
break;
case YoutubeQueryType.SearchVideo:
YoutubeApi.authorizedGetVideos(youtubeApiKey, query.userInput, callback);
+ case YoutubeQueryType.VideoDetails:
+ YoutubeApi.authorizedGetVideoDetails(youtubeApiKey, query.videoIds, callback);
}
}