Versions in this module Expand all Collapse all v0 v0.7.0 Nov 18, 2019 Changes in this version type FormatKey + const FormatFPSKey v0.5.1 Jul 19, 2017 Changes in this version + var FORMATS = map[int]Format + type Format struct + AudioBitrate int + AudioEncoding string + Extension string + Itag int + Resolution string + VideoEncoding string + func (f Format) CompareKey(other Format, key FormatKey) int + func (f Format) ValueForKey(key FormatKey) interface{} + type FormatKey string + const FormatAudioBitrateKey + const FormatAudioEncodingKey + const FormatExtensionKey + const FormatItagKey + const FormatResolutionKey + const FormatVideoEncodingKey + type FormatList []Format + func (formats FormatList) Best(key FormatKey) FormatList + func (formats FormatList) Copy() FormatList + func (formats FormatList) Extremes(key FormatKey, best bool) FormatList + func (formats FormatList) Filter(key FormatKey, values []interface{}) FormatList + func (formats FormatList) Sort(key FormatKey, reverse bool) + func (formats FormatList) Subtract(other FormatList) FormatList + func (formats FormatList) Worst(key FormatKey) FormatList + type ThumbnailQuality string + const ThumbnailQualityDefault + const ThumbnailQualityHigh + const ThumbnailQualityMaxRes + const ThumbnailQualityMedium + const ThumbnailQualitySD + type VideoInfo struct + Author string + DatePublished time.Time + Description string + Duration time.Duration + Formats FormatList + ID string + Keywords []string + Title string + func GetVideoInfo(value interface{}) (*VideoInfo, error) + func GetVideoInfoFromID(id string) (*VideoInfo, error) + func GetVideoInfoFromShortURL(u *url.URL) (*VideoInfo, error) + func GetVideoInfoFromURL(u *url.URL) (*VideoInfo, error) + func (info *VideoInfo) Download(format Format, dest io.Writer) error + func (info *VideoInfo) GetDownloadURL(format Format) (*url.URL, error) + func (info *VideoInfo) GetThumbnailURL(quality ThumbnailQuality) *url.URL