Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadResult ¶
type DownloadResult struct{}
type VideoMetadata ¶
type VideoMetadata struct { ID string `json:"id"` Title string `json:"title"` Formats []Format `json:"formats"` Thumbnails []Thumbnail `json:"thumbnails"` Description string `json:"description"` Uploader string `json:"uploader"` UploaderID string `json:"uploader_id"` UploaderURL string `json:"uploader_url"` UploadDate *JSONTime `json:"upload_date"` WebpageURL string `json:"webpage_url"` Filename string `json:"_filename"` Duration int `json:"duration"` }
type YoutubeDL ¶
type YoutubeDL interface { VideoMetadata(url string) ([]byte, error) Download(workDir string, metadata VideoMetadata) (DownloadResult, error) }
func NewYoutubeDLImpl ¶
func NewYoutubeDLImpl(logger *zap.SugaredLogger, command command.CommandProvider, cookies string) YoutubeDL
type YoutubeDLImpl ¶
type YoutubeDLImpl struct {
// contains filtered or unexported fields
}
func (YoutubeDLImpl) Download ¶
func (ydl YoutubeDLImpl) Download(workDir string, metadata VideoMetadata) (DownloadResult, error)
func (YoutubeDLImpl) VideoMetadata ¶
func (ydl YoutubeDLImpl) VideoMetadata(url string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.