Documentation
¶
Overview ¶
YouTube
Index ¶
Constants ¶
View Source
const ( HeightCrop = iota WidthAuto WidthAutoHeightBlack WidthBlack )
View Source
const (
VersionAndroid = "15.01"
)
View Source
const VersionWeb = "1.19700101"
Variables ¶
View Source
var Images = []Image{ {"0.jpg", 360, WidthAutoHeightBlack}, {"0.webp", 360, WidthAutoHeightBlack}, {"1.jpg", 90, WidthBlack}, {"1.webp", 90, WidthBlack}, {"2.jpg", 90, WidthBlack}, {"2.webp", 90, WidthBlack}, {"3.jpg", 90, WidthBlack}, {"3.webp", 90, WidthBlack}, {"default.jpg", 90, WidthAutoHeightBlack}, {"default.webp", 90, WidthAutoHeightBlack}, {"hq1.jpg", 360, WidthBlack}, {"hq1.webp", 360, WidthBlack}, {"hq2.jpg", 360, WidthBlack}, {"hq2.webp", 360, WidthBlack}, {"hq3.jpg", 360, WidthBlack}, {"hq3.webp", 360, WidthBlack}, {"hq720.jpg", 720, WidthAuto}, {"hq720.webp", 720, WidthAuto}, {"hqdefault.jpg", 360, WidthAutoHeightBlack}, {"hqdefault.webp", 360, WidthAutoHeightBlack}, {"maxres1.jpg", 720, WidthBlack}, {"maxres1.webp", 720, WidthBlack}, {"maxres2.jpg", 720, WidthBlack}, {"maxres2.webp", 720, WidthBlack}, {"maxres3.jpg", 720, WidthBlack}, {"maxres3.webp", 720, WidthBlack}, {"maxresdefault.jpg", 720, WidthAuto}, {"maxresdefault.webp", 720, WidthAuto}, {"mq1.jpg", 180, HeightCrop}, {"mq1.webp", 180, HeightCrop}, {"mq2.jpg", 180, HeightCrop}, {"mq2.webp", 180, HeightCrop}, {"mq3.jpg", 180, HeightCrop}, {"mq3.webp", 180, HeightCrop}, {"mqdefault.jpg", 180, WidthAuto}, {"mqdefault.webp", 180, WidthAuto}, {"sd1.jpg", 480, WidthBlack}, {"sd1.webp", 480, WidthBlack}, {"sd2.jpg", 480, WidthBlack}, {"sd2.webp", 480, WidthBlack}, {"sd3.jpg", 480, WidthBlack}, {"sd3.webp", 480, WidthBlack}, {"sddefault.jpg", 480, WidthAutoHeightBlack}, {"sddefault.webp", 480, WidthAutoHeightBlack}, }
Functions ¶
This section is empty.
Types ¶
type Android ¶ added in v1.13.3
type Android struct {
StreamingData struct {
AdaptiveFormats []Format
}
VideoDetails `json:"videoDetails"`
}
func NewAndroid ¶ added in v1.13.3
type Format ¶
type Microformat ¶ added in v1.13.6
type Microformat struct {
PlayerMicroformatRenderer `json:"playerMicroformatRenderer"`
}
type PlayerMicroformatRenderer ¶ added in v1.13.6
type Result ¶ added in v1.14.7
type Result struct {
Contents struct {
TwoColumnSearchResultsRenderer `json:"twoColumnSearchResultsRenderer"`
}
}
func (Result) VideoRenderers ¶ added in v1.14.7
func (r Result) VideoRenderers() []VideoRenderer
type TwoColumnSearchResultsRenderer ¶ added in v1.13.7
type TwoColumnSearchResultsRenderer struct {
PrimaryContents struct {
SectionListRenderer struct {
Contents []struct {
ItemSectionRenderer struct {
Contents []struct {
VideoRenderer `json:"videoRenderer"`
}
}
}
}
}
}
type VideoDetails ¶ added in v1.13.6
type VideoRenderer ¶ added in v1.11.2
type VideoRenderer struct {
VideoID string
}
type Web ¶ added in v1.13.3
type Web struct {
Microformat `json:"microformat"`
VideoDetails `json:"videoDetails"`
}
Click to show internal directories.
Click to hide internal directories.