app

package
v0.0.0-...-e0a24ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: MIT Imports: 11 Imported by: 0

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

type Application interface {
	DownloadPlaylist(url string) error
	DownloadSingle(url string) error
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL