Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB float64 = 1 << (10 * (iota + 1)) MB GB )
View Source
const (
// Youtube video meta source url
URL_META = "https://www.youtube.com/get_video_info?&video_id="
)
Variables ¶
View Source
var ( // Video formats Formats = []string{"3gp", "mp4", "flv", "webm", "avi"} )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Resume bool // resume failed or cancelled download Rename bool // rename output file using video title Mp3 bool // extract audio using ffmpeg }
Download options
type Video ¶
type Video struct {
Id, Title, Author, Keywords, Thumbnail_url string
Avg_rating float32
View_count, Length_seconds int
Formats []Format
Filename string
}
holds a video's information
func (*Video) GetExtension ¶
figure out the file extension from a codec string
Click to show internal directories.
Click to hide internal directories.