Documentation
¶
Overview ¶
YouTube
Index ¶
Constants ¶
View Source
const (
VersionAndroid = "15.01"
)
View Source
const VersionWeb = "1.19700101"
Variables ¶
View Source
var Images = []Image{
{"vi", "0", "jpg"},
{"vi", "1", "jpg"},
{"vi", "2", "jpg"},
{"vi", "3", "jpg"},
{"vi", "default", "jpg"},
{"vi", "hq1", "jpg"},
{"vi", "hq2", "jpg"},
{"vi", "hq3", "jpg"},
{"vi", "hq720", "jpg"},
{"vi", "hqdefault", "jpg"},
{"vi", "maxres1", "jpg"},
{"vi", "maxres2", "jpg"},
{"vi", "maxres3", "jpg"},
{"vi", "maxresdefault", "jpg"},
{"vi", "mq1", "jpg"},
{"vi", "mq2", "jpg"},
{"vi", "mq3", "jpg"},
{"vi", "mqdefault", "jpg"},
{"vi", "sd1", "jpg"},
{"vi", "sd2", "jpg"},
{"vi", "sd3", "jpg"},
{"vi", "sddefault", "jpg"},
{"vi_webp", "0", "webp"},
{"vi_webp", "1", "webp"},
{"vi_webp", "2", "webp"},
{"vi_webp", "3", "webp"},
{"vi_webp", "default", "webp"},
{"vi_webp", "hq1", "webp"},
{"vi_webp", "hq2", "webp"},
{"vi_webp", "hq3", "webp"},
{"vi_webp", "hq720", "webp"},
{"vi_webp", "hqdefault", "webp"},
{"vi_webp", "maxres1", "webp"},
{"vi_webp", "maxres2", "webp"},
{"vi_webp", "maxres3", "webp"},
{"vi_webp", "maxresdefault", "webp"},
{"vi_webp", "mq1", "webp"},
{"vi_webp", "mq2", "webp"},
{"vi_webp", "mq3", "webp"},
{"vi_webp", "mqdefault", "webp"},
{"vi_webp", "sd1", "webp"},
{"vi_webp", "sd2", "webp"},
{"vi_webp", "sd3", "webp"},
{"vi_webp", "sddefault", "webp"},
}
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.