From 8727285bc504f18c0b32b1ee1626b625a587622e Mon Sep 17 00:00:00 2001 From: James Mills Date: Thu, 26 Mar 2020 14:34:19 +1000 Subject: Refactored thumbnail generation with configurable timeout and in-sycn with video transcoding --- app/config.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'app/config.go') 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"` -- cgit v1.2.3