We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01feee5 commit 4ab8f97Copy full SHA for 4ab8f97
pkg/streamcontrol/youtube/youtube_client.go
@@ -143,13 +143,17 @@ func (c *YouTubeClientV3) GetBroadcasts(
143
r := c.Service.LiveBroadcasts.List(append([]string{"id"}, parts...)).
144
Context(ctx).Fields().
145
MaxResults(50) // see 'maxResults' in https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/list
146
+ shouldSetMine := true
147
if t != BroadcastTypeAll {
148
r = r.BroadcastStatus(t.String())
- } else {
149
- r = r.Mine(true)
+ shouldSetMine = false
150
}
151
if ids != nil {
152
r = r.Id(ids...)
153
154
+ }
155
+ if shouldSetMine {
156
+ r = r.Mine(true)
157
158
if pageToken != "" {
159
r = r.PageToken(pageToken)
0 commit comments