no panics. thanks Beam-master

This commit is contained in:
Alex Grintsvayg 2020-07-27 17:27:50 -04:00
parent e7fdd21bac
commit 8600077caa
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -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)