Documentation ¶
Index ¶
Constants ¶
View Source
const ModeLine = `` /* 307-byte string literal not displayed */
Variables ¶
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"},
{Width: 320, Height: 180, Name: "mq2.jpg"},
{Width: 320, Height: 180, Name: "mq3.jpg"},
{Width: 320, Height: 180, Name: "mqdefault.jpg"},
{Width: 320, Height: 180, Name: "mq1.webp"},
{Width: 320, Height: 180, Name: "mq2.webp"},
{Width: 320, Height: 180, Name: "mq3.webp"},
{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"},
}
Functions ¶
This section is empty.
Types ¶
type DeviceCode ¶
func (*DeviceCode) Post ¶
func (d *DeviceCode) Post() error
func (DeviceCode) String ¶
func (d DeviceCode) String() string
func (DeviceCode) Token ¶
func (d DeviceCode) Token() (*Token, error)
type Format ¶
type MetadataRowContainer ¶
type Player ¶
type Player struct { Microformat struct { PlayerMicroformatRenderer struct { PublishDate string } } PlayabilityStatus struct { Status string Reason string } StreamingData struct { AdaptiveFormats []Format } VideoDetails struct { Author string LengthSeconds int64 `json:",string"` ShortDescription string Title string VideoId string ViewCount int64 `json:",string"` } }
type Request ¶
type Request struct { ContentCheckOk bool `json:"contentCheckOk,omitempty"` Context struct { Client struct { AndroidSdkVersion int `json:"androidSdkVersion"` ClientName string `json:"clientName"` ClientVersion string `json:"clientVersion"` // need this to get the correct: // This video requires payment to watch // instead of the invalid: // This video can only be played on newer versions of Android or other // supported devices. OsVersion string `json:"osVersion"` } `json:"client"` } `json:"context"` RacyCheckOk bool `json:"racyCheckOk,omitempty"` VideoId string `json:"videoId"` }
func (*Request) AndroidCheck ¶
func (r *Request) AndroidCheck()
func (*Request) AndroidEmbed ¶
func (r *Request) AndroidEmbed()
type WatchNext ¶
type WatchNext []struct { VideoPrimaryInfoRenderer *struct { Title Run // The Family Secret } VideoSecondaryInfoRenderer *struct { MetadataRowContainer MetadataRowContainer Owner struct { VideoOwnerRenderer struct { Title Run } } } }
Click to show internal directories.
Click to hide internal directories.