Versions in this module Expand all Collapse all v1 v1.1.0 Jan 21, 2021 Changes in this version + var ErrRateLimit = errors.New("reCAPTCHA triggered") + var ErrVideoUnavailable = errors.New("video unavailable") + var MissingData = errors.New("missing data") + var ServerError = errors.New("server error") + func CommentRepliesContinuation(c *types.Comment, prev *types.CommentContinuation) *types.CommentContinuation + func ExtractChannelID(chanURL string) (string, error) + func ExtractNumber(s string) (uint64, error) + func ExtractVideoID(vidURL string) (string, error) + func InitialCommentContinuation(v *types.Video) *types.CommentContinuation + func ParseChannelOverview(res *fasthttp.Response) (*types.ChannelOverview, error) + func ParseChannelVideosPage(res *fasthttp.Response) (*types.ChannelVideosPage, error) + func ParseChannelVideosStart(res *fasthttp.Response) (*types.ChannelVideosPage, error) + func ParseCommentPage(res *fasthttp.Response, cont *types.CommentContinuation) (page types.CommentPage, err error) + func ParseDuration(d string) (uint64, error) + func ParsePlaylist(res *fasthttp.Response) (*types.Playlist, error) + func ParsePlaylistPage(res *fasthttp.Response) (*types.PlaylistPage, error) + func ParseVideo(res *fasthttp.Response) (*types.Video, error) + func ParseVideoBody(buf []byte, res *fasthttp.Response) (*types.Video, error) + type ChannelOverviewRequest struct + func (r ChannelOverviewRequest) Do() (*types.ChannelOverview, error) + type ChannelVideosPageRequest struct + func (r ChannelVideosPageRequest) Do() (*types.ChannelVideosPage, error) + func (r ChannelVideosPageRequest) GetRequest() *fasthttp.Request + type ChannelVideosStartRequest struct + func (r ChannelVideosStartRequest) Do() (*types.ChannelVideosPage, error) + func (r ChannelVideosStartRequest) GetRequest() *fasthttp.Request + type Client struct + HTTP *fasthttp.Client + func NewClient() *Client + func (c *Client) GetVideoSubtitleList(videoID string) (tracks *XMLSubTrackList, err error) + func (c *Client) RequestChannelOverview(channelID string) ChannelOverviewRequest + func (c *Client) RequestChannelVideosPage(cont string) ChannelVideosPageRequest + func (c *Client) RequestChannelVideosStart(channelID string) ChannelVideosStartRequest + func (c *Client) RequestCommentPage(continuation *types.CommentContinuation) CommentPageRequest + func (c *Client) RequestLivechatContinuation(continuation string) LivechatContinuationRequest + func (c *Client) RequestLivechatStart(videoID string) LivechatStartRequest + func (c *Client) RequestPlaylistPage(id string) PlaylistPageRequest + func (c *Client) RequestPlaylistStart(id string) PlaylistStartRequest + func (c *Client) RequestVideo(videoID string) VideoRequest + type CommentPageRequest struct + Continuation *types.CommentContinuation + func (r CommentPageRequest) Do() (page types.CommentPage, err error) + type LivechatContinuation struct + Continuation string + Timeout int + func ParseLivechatPage(res *fasthttp.Response) (msgs []types.LivechatMessage, cont LivechatContinuation, err error) + func ParseLivechatStart(res *fasthttp.Response) (msgs []types.LivechatMessage, cont LivechatContinuation, err error) + type LivechatContinuationRequest struct + func (r LivechatContinuationRequest) Do() ([]types.LivechatMessage, LivechatContinuation, error) + type LivechatStartRequest struct + func (r LivechatStartRequest) Do() ([]types.LivechatMessage, LivechatContinuation, error) + type PlaylistPageRequest struct + func (r PlaylistPageRequest) Do() (*types.PlaylistPage, error) + type PlaylistStartRequest struct + func (r PlaylistStartRequest) Do() (*types.Playlist, error) + type VideoRequest struct + func (r VideoRequest) Do() (*types.Video, error) + type XMLSubTrackList struct + Tracks []struct{ ... } v1.0.0 Jun 27, 2020