Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERR_MARSHAL_METADATA = "failed to marshal video metadata" ERR_UNMARSHAL_METADATA = "failed to unmarshal video metadata" ERR_STORE_VIDEO_METADATA = "failed to store video metadata" ERR_DOWNLOAD_VIDEO = "failed to download video" ERR_TAG_LOUDNESS = "failed to tag loudness" ERR_MAKE_DOWNLOAD_DIR = "failed to make download directory" ERR_INSERT_DOWNLOAD_RESULT = "failed to insert download result" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
func NewApplicationImpl ¶
func NewApplicationImpl(logger *zap.SugaredLogger, ydl ydl.YoutubeDL, loudness loudness.LoudnessScanner, jq jq.Jq, db db.Database, config ApplicationConfig) Application
type ApplicationConfig ¶
type ApplicationConfig struct {
DownloadRootDir string
}
type ApplicationImpl ¶
type ApplicationImpl struct {
// contains filtered or unexported fields
}
func (ApplicationImpl) DownloadPlaylist ¶
func (app ApplicationImpl) DownloadPlaylist(url string) error
func (ApplicationImpl) DownloadSingle ¶
func (app ApplicationImpl) DownloadSingle(url string) error
type MetadataPair ¶
type MetadataPair struct { Metadata ydl.VideoMetadata Bytes []byte }
Click to show internal directories.
Click to hide internal directories.