Skip to content

Commit

Permalink
Change implementation of liveChat, liveBroadcast and liveStream
Browse files Browse the repository at this point in the history
  • Loading branch information
tnovas committed Oct 18, 2017
1 parent 7b4d6b6 commit 7b1d485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Youtube extends OAuth2 {
let params = {
part: 'id,snippet,cdn,status',
key: this[credentialsYoutube].key,
liveId: this[credentialsYoutube].liveId
mine: true
};

return this[getYoutube](url, params);
Expand All @@ -75,7 +75,7 @@ class Youtube extends OAuth2 {
key: this[credentialsYoutube].key
};

return this[getYoutube](url, params);
return this[getYoutube](url, params).then((data) => this[credentialsYoutube].chatId = data.items[0].snippet.liveChatId);
}

[getYoutube](url, params) {
Expand Down

0 comments on commit 7b1d485

Please sign in to comment.