kkdai / youtube

Download Youtube Video in Golang
MIT License
3.3k stars 430 forks source link

Add ChannelHandle to Video struct #299

Closed xoltia closed 1 year ago

xoltia commented 1 year ago

Description

Adds ChannelHandle to Video struct.

It may be useful to some using this package to be able to access the channel handle on a video in addition to the channel's display name and ID. The handle comes from playerResponseData.Microformat.PlayerMicroformatRenderer.OwnerProfileURL (which is in the format http://www.youtube.com/@handle) and thus is empty when using the Android client.