ytdl-web/ytdl/metadata/subtitle.go

19 lines
428 B
Go
Raw Permalink Normal View History

2023-05-23 18:44:05 -04:00
package metadata
type Subtitle struct {
// Will be calculated from URL if missing
Ext string `json:"ext"`
// The subtitles file contents
Data string `json:"data"`
// A URL pointing to the subtitles file
Url string `json:"url"`
// Name or description of the subtitles
Name string `json:"name"`
// A dictionary of additional HTTP headers to add to the request.
HttpHeaders map[string]string `json:"http_headers"`
}