diff options
Diffstat (limited to 'app/config.go')
| -rw-r--r-- | app/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/config.go b/app/config.go index 9c0e733..c93d2a5 100644 --- a/app/config.go +++ b/app/config.go @@ -34,9 +34,13 @@ type ThumbnailerConfig struct { Timeout int `json:"timeout"` } +// Sizes a map of ffmpeg -s option to suffix. e.g: hd720 -> #720p +type Sizes map[string]string + // TranscoderConfig settings for Transcoder type TranscoderConfig struct { - Timeout int `json:"timeout"` + Timeout int `json:"timeout"` + Sizes Sizes `json:"sizes"` } // FeedConfig settings for App Feed. @@ -73,6 +77,7 @@ func DefaultConfig() *Config { }, Transcoder: &TranscoderConfig{ Timeout: 300, + Sizes: Sizes(nil), }, Feed: &FeedConfig{ ExternalURL: "http://localhost:8000", |
