Documentation ¶
Index ¶
- func FileSizeRateFromString(fileSizeRateString string) fileSizeRate
- func FileSizeRateFromValues(sizeRate float64, unit rune) fileSizeRate
- func NewOptions() options
- func NewYoutubeDl() youtubeDl
- type BoolOption
- type FileSizeRateOption
- type Info
- type IntOption
- type IpOption
- type Option
- type StringArrayOption
- type StringOption
- type TimeOption
- type UintOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileSizeRateFromString ¶
func FileSizeRateFromString(fileSizeRateString string) fileSizeRate
FileSizeRateFromString creates a new FileSizeRate from a string
func FileSizeRateFromValues ¶
FileSizeRateFromValues creates a new FileSizeRate from values (float64, rune)
func NewOptions ¶
func NewOptions() options
Returns a new options object with the various options initialized with their params
func NewYoutubeDl ¶
func NewYoutubeDl() youtubeDl
NewYoutubeDl returns a newly instantiated youtubeDl object
Types ¶
type BoolOption ¶
type BoolOption struct { Value bool // contains filtered or unexported fields }
func (BoolOption) OptionString ¶
func (boolOpt BoolOption) OptionString() string
type FileSizeRateOption ¶
type FileSizeRateOption struct { Value fileSizeRate // contains filtered or unexported fields }
func (FileSizeRateOption) OptionString ¶
func (fsrOpt FileSizeRateOption) OptionString() string
type Info ¶
type Info struct { ID string `json:"id"` Uploader string `json:"uploader"` UploaderID string `json:"uploader_id"` UploaderURL string `json:"uploader_url"` UploadDate string `json:"upload_date"` License string `json:"license"` Creator interface{} `json:"creator"` Title string `json:"title"` AltTitle interface{} `json:"alt_title"` Thumbnail string `json:"thumbnail"` Description string `json:"description"` Categories []string `json:"categories"` Tags []string `json:"tags"` Subtitles struct { } `json:"subtitles"` AutomaticCaptions struct { } `json:"automatic_captions"` Duration float64 `json:"duration"` AgeLimit int `json:"age_limit"` Annotations interface{} `json:"annotations"` Chapters interface{} `json:"chapters"` WebpageURL string `json:"webpage_url"` ViewCount int `json:"view_count"` LikeCount int `json:"like_count"` DislikeCount int `json:"dislike_count"` AverageRating float64 `json:"average_rating"` Formats []struct { Ext string `json:"ext"` FormatNote string `json:"format_note"` Acodec string `json:"acodec"` Abr float32 `json:"abr,omitempty"` Container string `json:"container,omitempty"` FormatID string `json:"format_id"` URL string `json:"url"` ManifestURL string `json:"manifest_url,omitempty"` Width interface{} `json:"width,omitempty"` Height interface{} `json:"height,omitempty"` Tbr float64 `json:"tbr,omitempty"` Asr int `json:"asr,omitempty"` Fps interface{} `json:"fps,omitempty"` Language interface{} `json:"language,omitempty"` Filesize int `json:"filesize,omitempty"` Vcodec string `json:"vcodec"` Format string `json:"format"` Protocol string `json:"protocol"` HTTPHeaders struct { UserAgent string `json:"User-Agent"` AcceptCharset string `json:"Accept-Charset"` Accept string `json:"Accept"` AcceptEncoding string `json:"Accept-Encoding"` AcceptLanguage string `json:"Accept-Language"` } `json:"http_headers"` PlayerURL string `json:"player_url,omitempty"` Resolution string `json:"resolution,omitempty"` } `json:"formats"` IsLive interface{} `json:"is_live"` StartTime interface{} `json:"start_time"` EndTime interface{} `json:"end_time"` Series interface{} `json:"series"` SeasonNumber interface{} `json:"season_number"` EpisodeNumber interface{} `json:"episode_number"` Extractor string `json:"extractor"` WebpageURLBasename string `json:"webpage_url_basename"` ExtractorKey string `json:"extractor_key"` Playlist interface{} `json:"playlist"` PlaylistIndex interface{} `json:"playlist_index"` Thumbnails []struct { URL string `json:"url"` ID string `json:"id"` } `json:"thumbnails"` DisplayID string `json:"display_id"` RequestedSubtitles interface{} `json:"requested_subtitles"` RequestedFormats []struct { Ext string `json:"ext"` Height int `json:"height,omitempty"` FormatNote string `json:"format_note"` Vcodec string `json:"vcodec"` FormatID string `json:"format_id"` URL string `json:"url"` ManifestURL string `json:"manifest_url,omitempty"` Width int `json:"width,omitempty"` Tbr float64 `json:"tbr"` Asr interface{} `json:"asr,omitempty"` Fps int `json:"fps,omitempty"` Language interface{} `json:"language,omitempty"` Filesize int `json:"filesize"` Acodec string `json:"acodec"` Format string `json:"format"` Protocol string `json:"protocol"` HTTPHeaders struct { UserAgent string `json:"User-Agent"` AcceptCharset string `json:"Accept-Charset"` Accept string `json:"Accept"` AcceptEncoding string `json:"Accept-Encoding"` AcceptLanguage string `json:"Accept-Language"` } `json:"http_headers"` PlayerURL string `json:"player_url,omitempty"` Abr float32 `json:"abr,omitempty"` } `json:"requested_formats"` Format string `json:"format"` FormatID string `json:"format_id"` Width int `json:"width"` Height int `json:"height"` Resolution interface{} `json:"resolution"` Fps int `json:"fps"` Vcodec string `json:"vcodec"` Vbr interface{} `json:"vbr"` StretchedRatio interface{} `json:"stretched_ratio"` Acodec string `json:"acodec"` Abr float32 `json:"abr"` Ext string `json:"ext"` Fulltitle string `json:"fulltitle"` Filename string `json:"_filename"` }
Info is an object representing the JSON returned from a -J download (dump-single-json)
type IntOption ¶
type IntOption struct { Value int // contains filtered or unexported fields }
func (IntOption) OptionString ¶
type IpOption ¶
func (IpOption) OptionString ¶
type Option ¶
type Option interface {
OptionString() string
}
Option interface represents a CLI parameter that can be passed to youtube-dl The String method returns what would be passed to youtube-dl
type StringArrayOption ¶
type StringArrayOption struct { Values []string // contains filtered or unexported fields }
func (StringArrayOption) OptionString ¶
func (stringArrOpt StringArrayOption) OptionString() string
type StringOption ¶
type StringOption struct { Value string // contains filtered or unexported fields }
func (StringOption) OptionString ¶
func (stringOpt StringOption) OptionString() string
type TimeOption ¶
func (TimeOption) OptionString ¶
func (timeOpt TimeOption) OptionString() string
type UintOption ¶
type UintOption struct { Value uint // contains filtered or unexported fields }
func (UintOption) OptionString ¶
func (uintOpt UintOption) OptionString() string
Click to show internal directories.
Click to hide internal directories.