Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultDownloadTimeout = 10 * time.Minute UpdatePeriod = 24 * time.Hour )
Variables ¶
View Source
var (
ErrTooManyRequests = errors.New(http.StatusText(http.StatusTooManyRequests))
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // SelfUpdate toggles self update every 24 hour SelfUpdate bool `toml:"self_update"` // Timeout in minutes for youtube-dl process to finish download Timeout int `toml:"timeout"` // CustomBinary is a custom path to youtube-dl, this allows using various youtube-dl forks. CustomBinary string `toml:"custom_binary"` }
Config is a youtube-dl related configuration
Click to show internal directories.
Click to hide internal directories.