supported modifiers are --playlist-start, --playlist-end, --playlist-reverse, --max-downloads
19 lines
548 B
Go
19 lines
548 B
Go
package common
|
|
|
|
import "time"
|
|
|
|
// Used to deser the yt-dlp -J output
|
|
type DownloadInfo struct {
|
|
URL string `json:"url"`
|
|
Title string `json:"title"`
|
|
Thumbnail string `json:"thumbnail"`
|
|
Resolution string `json:"resolution"`
|
|
Size int32 `json:"filesize_approx"`
|
|
VCodec string `json:"vcodec"`
|
|
ACodec string `json:"acodec"`
|
|
Extension string `json:"ext"`
|
|
OriginalURL string `json:"original_url"`
|
|
FileName string `json:"filename"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|