diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-26 19:15:50 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-26 19:15:50 -0400 |
commit | 21bc14319013e4757ca24f56a685b7d75eaa259a (patch) | |
tree | 9c21ee1dc68273a06386b1cde73d998195f03826 /src/client/DocServer.ts | |
parent | 530f38e60d6289a221a463ba36af2ed22c15d8d2 (diff) |
Searching through document for a youtube video done
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index b0060bfdc..65d662ebc 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -48,12 +48,12 @@ export namespace DocServer { } export async function getYoutubeChannels() { - let apiKey = await Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, YoutubeQueryTypes.Channels); + let apiKey = await Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.Channels }); return apiKey; } - export function getYoutubeVideos() { - Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, YoutubeQueryTypes.SearchVideo); + export function getYoutubeVideos(videoTitle: string) { + Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.SearchVideo, userInput: videoTitle }); } |