Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Duration = map[string]uint64{
"Under 4 minutes": 1,
"4 - 20 minutes": 3,
"Over 20 minutes": 2,
}
View Source
var Features = map[string]protobuf.Number{
"360°": 15,
"3D": 7,
"4K": 14,
"Creative Commons": 6,
"HD": 4,
"HDR": 25,
"Live": 8,
"Location": 23,
"Purchased": 9,
"Subtitles/CC": 5,
"VR180": 26,
}
View Source
var HTTP_Client = http.Default_Client
View Source
var Images = []Image{ {Width: 120, Height: 90, Name: "default.jpg"}, {Width: 120, Height: 90, Name: "1.jpg"}, {Width: 120, Height: 90, Name: "2.jpg"}, {Width: 120, Height: 90, Name: "3.jpg"}, {Width: 120, Height: 90, Name: "default.webp"}, {Width: 120, Height: 90, Name: "1.webp"}, {Width: 120, Height: 90, Name: "2.webp"}, {Width: 120, Height: 90, Name: "3.webp"}, {Width: 320, Height: 180, Name: "mq1.jpg", Crop: true}, {Width: 320, Height: 180, Name: "mq2.jpg", Crop: true}, {Width: 320, Height: 180, Name: "mq3.jpg", Crop: true}, {Width: 320, Height: 180, Name: "mqdefault.jpg"}, {Width: 320, Height: 180, Name: "mq1.webp", Crop: true}, {Width: 320, Height: 180, Name: "mq2.webp", Crop: true}, {Width: 320, Height: 180, Name: "mq3.webp", Crop: true}, {Width: 320, Height: 180, Name: "mqdefault.webp"}, {Width: 480, Height: 360, Name: "0.jpg"}, {Width: 480, Height: 360, Name: "hqdefault.jpg"}, {Width: 480, Height: 360, Name: "hq1.jpg"}, {Width: 480, Height: 360, Name: "hq2.jpg"}, {Width: 480, Height: 360, Name: "hq3.jpg"}, {Width: 480, Height: 360, Name: "0.webp"}, {Width: 480, Height: 360, Name: "hqdefault.webp"}, {Width: 480, Height: 360, Name: "hq1.webp"}, {Width: 480, Height: 360, Name: "hq2.webp"}, {Width: 480, Height: 360, Name: "hq3.webp"}, {Width: 640, Height: 480, Name: "sddefault.jpg"}, {Width: 640, Height: 480, Name: "sd1.jpg"}, {Width: 640, Height: 480, Name: "sd2.jpg"}, {Width: 640, Height: 480, Name: "sd3.jpg"}, {Width: 640, Height: 480, Name: "sddefault.webp"}, {Width: 640, Height: 480, Name: "sd1.webp"}, {Width: 640, Height: 480, Name: "sd2.webp"}, {Width: 640, Height: 480, Name: "sd3.webp"}, {Width: 1280, Height: 720, Name: "hq720.jpg"}, {Width: 1280, Height: 720, Name: "maxresdefault.jpg"}, {Width: 1280, Height: 720, Name: "maxres1.jpg"}, {Width: 1280, Height: 720, Name: "maxres2.jpg"}, {Width: 1280, Height: 720, Name: "maxres3.jpg"}, {Width: 1280, Height: 720, Name: "hq720.webp"}, {Width: 1280, Height: 720, Name: "maxresdefault.webp"}, {Width: 1280, Height: 720, Name: "maxres1.webp"}, {Width: 1280, Height: 720, Name: "maxres2.webp"}, {Width: 1280, Height: 720, Name: "maxres3.webp"}, }
View Source
var Sort_By = map[string]uint64{
"Relevance": 0,
"Upload date": 2,
"View count": 3,
"Rating": 1,
}
View Source
var Type = map[string]uint64{
"Video": 1,
"Channel": 2,
"Playlist": 3,
"Movie": 4,
}
View Source
var Upload_Date = map[string]uint64{
"Last hour": 1,
"Today": 2,
"This week": 3,
"This month": 4,
"This year": 5,
}
Functions ¶
Types ¶
type Filter ¶ added in v1.37.1
func New_Filter ¶ added in v1.54.6
func New_Filter() Filter
func (Filter) Upload_Date ¶ added in v1.54.6
type Format ¶
type Format struct {
AudioQuality string
QualityLabel string
Width int
Height int
Bitrate int64
ContentLength int64 `json:"contentLength,string"`
MimeType string
URL string
}
func (Format) MarshalText ¶ added in v1.54.7
type Header ¶ added in v1.54.8
func Open_Header ¶ added in v1.54.8
type Params ¶ added in v1.27.5
func New_Params ¶ added in v1.54.6
func New_Params() Params
type Player ¶ added in v1.13.0
type Player struct {
VideoDetails struct {
Author string
LengthSeconds int64 `json:"lengthSeconds,string"`
ShortDescription string
Title string
VideoId string
ViewCount int64 `json:"viewCount,string"`
}
Microformat struct {
PlayerMicroformatRenderer struct {
PublishDate string
}
}
StreamingData struct {
AdaptiveFormats Formats
}
PlayabilityStatus Status
}
func (Player) MarshalText ¶ added in v1.54.7
func (Player) PublishDate ¶ added in v1.13.0
type Request ¶ added in v1.14.1
type Request struct {
Header *Header
// contains filtered or unexported fields
}
func Android_Content ¶ added in v1.54.5
func Android_Content() Request
func Android_Embed ¶ added in v1.54.5
func Android_Embed() Request
func Android_Racy ¶ added in v1.54.5
func Android_Racy() Request
func Mobile_Web ¶ added in v1.55.0
func Mobile_Web() Request
Click to show internal directories.
Click to hide internal directories.