Versions in this module Expand all Collapse all v1 v1.0.0 Mar 18, 2020 Changes in this version + type AudioStream struct + AverageBitrate int64 + Bitrate int64 + Channels int + Codec string + Expiration time.Time + FileSize int64 + MimeType string + Quality data.AudioQuality + SampleRate int64 + func (stream *AudioStream) Download(destdir, filename string, overwrite bool, onStart func(total int64), ...) (path string, err error) + func (stream *AudioStream) GetDownloadURL() (string, error) + func (stream *AudioStream) Itag() int + func (stream *AudioStream) Metadata() map[string]interface{} + func (stream *AudioStream) Name() string + func (stream *AudioStream) ParentVideo() *Video + func (stream *AudioStream) Subtype() string + func (stream *AudioStream) Type() string + type AudioStreams []*AudioStream + func (streams AudioStreams) Best() *AudioStream + func (streams AudioStreams) First() *AudioStream + func (streams AudioStreams) Last() *AudioStream + func (streams AudioStreams) Worst() *AudioStream + type Caption struct + LanguageCode string + Name string + URL string + func (caption *Caption) GetContent() (string, error) + func (caption *Caption) GetWebVTT() (string, error) + func (caption *Caption) Save(destdir, filename string, webvtt bool) (finalpath string, err error) + type Captions []*Caption + func (captions Captions) LanguageCode(lc string) *Caption + type Error interface + Error func() string + Name func() string + type Stream interface + Download func(destdir, filename string, overwrite bool, onStart func(int64), ...) (string, error) + GetDownloadURL func() (string, error) + Itag func() int + Metadata func() map[string]interface{} + Name func() string + ParentVideo func() *Video + Subtype func() string + Type func() string + type Streams []Stream + func (streams Streams) Audios() (audioStreams AudioStreams) + func (streams Streams) Filter(f func(int, Stream) bool) (results Streams) + func (streams Streams) First() Stream + func (streams Streams) Itag(itag int) Stream + func (streams Streams) Last() Stream + func (streams Streams) Sort(less func(Stream, Stream) bool) (results Streams) + func (streams Streams) Subtype(subtype string) Streams + func (streams Streams) Videos() (videoStreams VideoStreams) + type Video struct + EmbedURL string + ID string + IsAgeRestricted bool + WatchURL string + func NewVideo(idurl string, preinit bool) (vid *Video, err error) + func (video *Video) Captions() Captions + func (video *Video) Initialize() (err error) + func (video *Video) Streams() Streams + type VideoInfo struct + Author string + AverageRating float64 + Category string + Description string + Duration int + IsAgeRestricted bool + IsUnlisted bool + Keywords []string + ThumbnailURL string + Title string + Views int + type VideoStream struct + AudioCodec string + AverageBitrate int64 + Bitrate int64 + Expiration time.Time + FileSize int64 + HasAudio bool + Height int + MimeType string + QualityLabel string + VideoCodec string + Width int + func (stream *VideoStream) Download(destdir, filename string, overwrite bool, onStart func(total int64), ...) (path string, err error) + func (stream *VideoStream) GetDownloadURL() (string, error) + func (stream *VideoStream) Itag() int + func (stream *VideoStream) Metadata() map[string]interface{} + func (stream *VideoStream) Name() string + func (stream *VideoStream) ParentVideo() *Video + func (stream *VideoStream) Subtype() string + func (stream *VideoStream) Type() string + type VideoStreams []*VideoStream + func (streams VideoStreams) Best() *VideoStream + func (streams VideoStreams) First() *VideoStream + func (streams VideoStreams) Last() *VideoStream + func (streams VideoStreams) WithAudio() (videoStreams VideoStreams) + func (streams VideoStreams) Worst() *VideoStream