Documentation ¶
Overview ¶
YouTube
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WebP = PictureFormat{0, "vi_webp", "webp"} JPG = PictureFormat{1, "vi", "jpg"} )
View Source
var ( Android = Client{Name: "ANDROID", Version: "16.05"} Embed = Client{Name: "ANDROID", Screen: "EMBED", Version: "16.05"} Mweb = Client{Name: "MWEB", Version: "2.19700101"} )
View Source
var Key = Auth{"X-Goog-Api-Key", "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8"}
View Source
var Pictures = PictureSlice{ {120, 90, 68, "default", JPG}, {120, 90, 90, "1", JPG}, {120, 90, 90, "2", JPG}, {120, 90, 90, "3", JPG}, {120, 90, 68, "default", WebP}, {120, 90, 90, "1", WebP}, {120, 90, 90, "2", WebP}, {120, 90, 90, "3", WebP}, {320, 180, 180, "mqdefault", JPG}, {320, 180, 320, "mq1", JPG}, {320, 180, 320, "mq2", JPG}, {320, 180, 320, "mq3", JPG}, {320, 180, 180, "mqdefault", WebP}, {320, 180, 320, "mq1", WebP}, {320, 180, 320, "mq2", WebP}, {320, 180, 320, "mq3", WebP}, {480, 360, 270, "0", JPG}, {480, 360, 270, "hqdefault", JPG}, {480, 360, 360, "hq1", JPG}, {480, 360, 360, "hq2", JPG}, {480, 360, 360, "hq3", JPG}, {480, 360, 270, "0", WebP}, {480, 360, 270, "hqdefault", WebP}, {480, 360, 360, "hq1", WebP}, {480, 360, 360, "hq2", WebP}, {480, 360, 360, "hq3", WebP}, {640, 480, 360, "sddefault", JPG}, {640, 480, 480, "sd1", JPG}, {640, 480, 480, "sd2", JPG}, {640, 480, 480, "sd3", JPG}, {640, 480, 360, "sddefault", WebP}, {640, 480, 480, "sd1", WebP}, {640, 480, 480, "sd2", WebP}, {640, 480, 480, "sd3", WebP}, {1280, 720, 720, "hq720", JPG}, {1280, 720, 720, "maxres1", JPG}, {1280, 720, 720, "maxres2", JPG}, {1280, 720, 720, "maxres3", JPG}, {1280, 720, 720, "maxresdefault", JPG}, {1280, 720, 720, "hq720", WebP}, {1280, 720, 720, "maxres1", WebP}, {1280, 720, 720, "maxres2", WebP}, {1280, 720, 720, "maxres3", WebP}, {1280, 720, 720, "maxresdefault", WebP}, }
Functions ¶
This section is empty.
Types ¶
type Format ¶
type FormatSlice ¶ added in v1.17.8
type FormatSlice []Format
func (FormatSlice) Filter ¶ added in v1.17.8
func (f FormatSlice) Filter(keep func(Format) bool) FormatSlice
func (FormatSlice) Sort ¶ added in v1.17.8
func (f FormatSlice) Sort(less ...func(a, b Format) bool)
type Microformat ¶ added in v1.13.6
type Microformat struct {
PlayerMicroformatRenderer `json:"playerMicroformatRenderer"`
}
type Picture ¶ added in v1.21.9
type Picture struct { Width int Height int SubHeight int Base string Format PictureFormat }
type PictureFormat ¶ added in v1.21.9
type PictureSlice ¶ added in v1.21.9
type PictureSlice []Picture
func (PictureSlice) Filter ¶ added in v1.21.9
func (p PictureSlice) Filter(keep func(Picture) bool) PictureSlice
func (PictureSlice) Sort ¶ added in v1.21.9
func (p PictureSlice) Sort(less ...func(a, b Picture) bool)
type Player ¶ added in v1.13.0
type Player struct { Microformat `json:"microformat"` PlayabilityStatus struct { Reason string Status string } StreamingData `json:"streamingData"` VideoDetails `json:"videoDetails"` }
type PlayerMicroformatRenderer ¶ added in v1.13.6
type Result ¶ added in v1.14.7
func (*Result) SetDistance ¶ added in v1.21.9
func (r *Result) SetDistance(other *goimagehash.ImageHash) error
type Search ¶ added in v1.11.2
type Search struct { Contents struct { SectionListRenderer struct { Contents []struct { ItemSectionRenderer struct { Contents []struct { CompactVideoRenderer struct { VideoID string } } } } } } }
type StreamingData ¶ added in v1.17.9
type StreamingData struct { AdaptiveFormats FormatSlice // just including this so I can bail if video is Dash Manifest DashManifestURL string }
Click to show internal directories.
Click to hide internal directories.