Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCompletedJobRemoval = time.Duration(-15) * time.Minute
DefaultCompletedJobRemoval ..
View Source
var DefaultDownloadDir = "/media"
DefaultDownloadDir specifies default location for downloadedfiles
View Source
var DefaultNrWorkers = 2
DefaultNrWorkers ..
View Source
var SvtDLLocation = "/usr/bin/svtplay-dl"
SvtDLLocation is describing the location of SvtDL
Functions ¶
Types ¶
type Download ¶
type Download struct {
URL string `json:"url"`
Started *time.Time `json:"started"`
Completed *time.Time `json:"completed"`
Running bool `json:"running"`
Done bool `json:"done"`
FindCmd *cmd.Cmd `json:"-"`
StatusChan <-chan cmd.Status `json:"-"`
Ticker *time.Ticker `json:"-"`
StdOut []string `json:"std_out"`
StdErr []string `json:"std_err"`
Error bool `json:"error"`
Filename *string `json:"filename"`
AudioETA *string `json:"audio_eta"`
VideoETA *string `json:"video_eta"`
AudioDownloaded bool `json:"audio_ready"`
VideoDownloaded bool `json:"video_ready"`
AudioStarted bool `json:"-"`
VideoStarted bool `json:"-"`
FullStdErr []string `json:"-"`
}
Download struct containing info regarding a executable command
Click to show internal directories.
Click to hide internal directories.