From 8600077caae9afcc3cb69ed8200d8b0370697406 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 27 Jul 2020 17:27:50 -0400 Subject: [PATCH] no panics. thanks Beam-master --- ytapi/ytapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytapi/ytapi.go b/ytapi/ytapi.go index a290b9e..db354ec 100644 --- a/ytapi/ytapi.go +++ b/ytapi/ytapi.go @@ -142,7 +142,7 @@ func CountVideosInChannel(channelID string) (int, error) { } func ChannelInfo(apiKey, channelID string) (*ytlib.ChannelSnippet, *ytlib.ChannelBrandingSettings, error) { - panic("not de-youtube-ified yet") + return nil, nil, errors.Err("ChannelInfo doesn't work yet because we're focused on existing channels") service, err := ytlib.New(&http.Client{Transport: &transport.APIKey{Key: apiKey}}) if err != nil { return nil, nil, errors.Prefix("error creating YouTube service", err)