summaryrefslogtreecommitdiff
path: root/app/config.go
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-26 14:34:19 +1000
committerJames Mills <prologic@shortcircuit.net.au>2020-03-26 14:50:49 +1000
commit8727285bc504f18c0b32b1ee1626b625a587622e (patch)
treec8d1428a8cfa61f20379bd665a9a1c94b9b30bc8 /app/config.go
parent7fa7a38167415301a9a01735d2eb354542c11dcb (diff)
Refactored thumbnail generation with configurable timeout and in-sycn with video transcoding
Diffstat (limited to 'app/config.go')
-rw-r--r--app/config.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/app/config.go b/app/config.go
index 097297d..01a2af8 100644
--- a/app/config.go
+++ b/app/config.go
@@ -7,10 +7,11 @@ import (
// Config settings for main App.
type Config struct {
- Library []*PathConfig `json:"library"`
- Server *ServerConfig `json:"server"`
- Transcoder *TranscoderConfig `json:"transcoder"`
- Feed *FeedConfig `json:"feed"`
+ Library []*PathConfig `json:"library"`
+ Server *ServerConfig `json:"server"`
+ Thumbnailer *ThumbnailerConfig `json:"thumbnailer"`
+ Transcoder *TranscoderConfig `json:"transcoder"`
+ Feed *FeedConfig `json:"feed"`
}
// PathConfig settings for media library path.
@@ -27,6 +28,11 @@ type ServerConfig struct {
UploadPath string `json:"upload_path"`
}
+// ThumbnailerConfig settings for Transcoder
+type ThumbnailerConfig struct {
+ Timeout int `json:"timeout"`
+}
+
// TranscoderConfig settings for Transcoder
type TranscoderConfig struct {
Timeout int `json:"timeout"`