Documentation
¶
Overview ¶
YouTube
Index ¶
Constants ¶
View Source
const (
VersionAndroid = "15.01"
)
View Source
const VersionWeb = "1.19700101"
Variables ¶
View Source
var Images = []Image{
{Right: "0", Ext: "jpg"},
{Right: "1", Ext: "jpg"},
{Right: "2", Ext: "jpg"},
{Right: "3", Ext: "jpg"},
{Right: "default", Ext: "jpg"},
{Left: "hq", Right: "1", Ext: "jpg"},
{Left: "hq", Right: "2", Ext: "jpg"},
{Left: "hq", Right: "3", Ext: "jpg"},
{Left: "hq", Right: "720", Ext: "jpg"},
{Left: "hq", Right: "default", Ext: "jpg"},
{Left: "maxres", Right: "1", Ext: "jpg"},
{Left: "maxres", Right: "2", Ext: "jpg"},
{Left: "maxres", Right: "3", Ext: "jpg"},
{Left: "maxres", Right: "default", Ext: "jpg"},
{Left: "mq", Right: "1", Ext: "jpg"},
{Left: "mq", Right: "2", Ext: "jpg"},
{Left: "mq", Right: "3", Ext: "jpg"},
{Left: "mq", Right: "default", Ext: "jpg"},
{Left: "sd", Right: "1", Ext: "jpg"},
{Left: "sd", Right: "2", Ext: "jpg"},
{Left: "sd", Right: "3", Ext: "jpg"},
{Left: "sd", Right: "default", Ext: "jpg"},
{Vi: "_webp", Right: "0", Ext: "webp"},
{Vi: "_webp", Right: "1", Ext: "webp"},
{Vi: "_webp", Right: "2", Ext: "webp"},
{Vi: "_webp", Right: "3", Ext: "webp"},
{Vi: "_webp", Right: "default", Ext: "webp"},
{Vi: "_webp", Left: "hq", Right: "1", Ext: "webp"},
{Vi: "_webp", Left: "hq", Right: "2", Ext: "webp"},
{Vi: "_webp", Left: "hq", Right: "3", Ext: "webp"},
{Vi: "_webp", Left: "hq", Right: "720", Ext: "webp"},
{Vi: "_webp", Left: "hq", Right: "default", Ext: "webp"},
{Vi: "_webp", Left: "maxres", Right: "1", Ext: "webp"},
{Vi: "_webp", Left: "maxres", Right: "2", Ext: "webp"},
{Vi: "_webp", Left: "maxres", Right: "3", Ext: "webp"},
{Vi: "_webp", Left: "maxres", Right: "default", Ext: "webp"},
{Vi: "_webp", Left: "mq", Right: "1", Ext: "webp"},
{Vi: "_webp", Left: "mq", Right: "2", Ext: "webp"},
{Vi: "_webp", Left: "mq", Right: "3", Ext: "webp"},
{Vi: "_webp", Left: "mq", Right: "default", Ext: "webp"},
{Vi: "_webp", Left: "sd", Right: "1", Ext: "webp"},
{Vi: "_webp", Left: "sd", Right: "2", Ext: "webp"},
{Vi: "_webp", Left: "sd", Right: "3", Ext: "webp"},
{Vi: "_webp", Left: "sd", Right: "default", Ext: "webp"},
}
Functions ¶
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.