[RN] Fix YouTube channel name list

This commit is contained in:
Bettenbuk Zoltan 2018-10-18 17:48:35 +02:00 committed by Saúl Ibarra Corretgé
parent 837f496e8f
commit 554974a36d
1 changed files with 5 additions and 4 deletions

View File

@ -149,11 +149,12 @@ class GoogleApi {
let title;
// Finding title from the broadcast with the same
// channelId. If not found (unknown scenario), we use
// the key as title again.
// boundStreamId. If not found (unknown scenario), we
// use the key as title again.
for (const broadcast of broadcasts) {
if (broadcast.snippet.channelId
=== stream.snippet.channelId) {
if (broadcast.contentDetails
&& broadcast.contentDetails.boundStreamId
=== stream.id) {
title = broadcast.snippet.title;
}
}