Skip to content

Commit 829c7b9

Browse files
committed
Fix typos made in ab906d4
1 parent 2d9ae83 commit 829c7b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/streamcontrol/youtube/youtube_client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (c *YouTubeClientV3) GetVideos(
193193
) (_ret *youtube.VideoListResponse, _err error) {
194194
logger.Tracef(ctx, "GetVideos")
195195
defer func() { logger.Tracef(ctx, "/GetVideos: %v", _err) }()
196-
do := c.Service.Videos.List(videoParts).Id(broadcastIDs...).Context(ctx).Do
196+
do := c.Service.Videos.List(parts).Id(broadcastIDs...).Context(ctx).Do
197197
return wrapRequestR(ctx, c.RequestWrapper, do)
198198
}
199199

@@ -204,17 +204,17 @@ func (c *YouTubeClientV3) UpdateVideo(
204204
) (_err error) {
205205
logger.Tracef(ctx, "UpdateVideo")
206206
defer func() { logger.Tracef(ctx, "/UpdateVideo: %v", _err) }()
207-
do := c.Service.Videos.Update(videoParts, video).Context(ctx).Do
207+
do := c.Service.Videos.Update(parts, video).Context(ctx).Do
208208
return wrapRequestS(ctx, c.RequestWrapper, do)
209209
}
210210

211211
func (c *YouTubeClientV3) GetPlaylists(
212212
ctx context.Context,
213-
playlistParts []string,
213+
parts []string,
214214
) (_ret *youtube.PlaylistListResponse, _err error) {
215215
logger.Tracef(ctx, "GetPlaylists")
216216
defer func() { logger.Tracef(ctx, "/GetPlaylists: %v", _err) }()
217-
do := c.Service.Playlists.List(playlistParts).MaxResults(1000).Mine(true).Context(ctx).Do
217+
do := c.Service.Playlists.List(parts).MaxResults(1000).Mine(true).Context(ctx).Do
218218
return wrapRequestR(ctx, c.RequestWrapper, do)
219219
}
220220

0 commit comments

Comments
 (0)