|
|
@@ -149,11 +149,12 @@ class GoogleApi {
|
|
149
|
149
|
let title;
|
|
150
|
150
|
|
|
151
|
151
|
// Finding title from the broadcast with the same
|
|
152
|
|
- // channelId. If not found (unknown scenario), we use
|
|
153
|
|
- // the key as title again.
|
|
|
152
|
+ // boundStreamId. If not found (unknown scenario), we
|
|
|
153
|
+ // use the key as title again.
|
|
154
|
154
|
for (const broadcast of broadcasts) {
|
|
155
|
|
- if (broadcast.snippet.channelId
|
|
156
|
|
- === stream.snippet.channelId) {
|
|
|
155
|
+ if (broadcast.contentDetails
|
|
|
156
|
+ && broadcast.contentDetails.boundStreamId
|
|
|
157
|
+ === stream.id) {
|
|
157
|
158
|
title = broadcast.snippet.title;
|
|
158
|
159
|
}
|
|
159
|
160
|
}
|