Добавил обновление библиотеки jellyfin после добавления медиа
This commit is contained in:
@@ -17,6 +17,7 @@ type Config struct {
|
||||
Storage Storage `toml:"storage"`
|
||||
LLM LLM `toml:"llm"`
|
||||
Metadata Metadata `toml:"metadata"`
|
||||
Jellyfin Jellyfin `toml:"jellyfin"`
|
||||
Worker Worker `toml:"worker"`
|
||||
Recognition Recognition `toml:"recognition"`
|
||||
Telegram Telegram `toml:"telegram"`
|
||||
@@ -78,6 +79,16 @@ type MetadataProvider struct {
|
||||
Timeout Duration `toml:"timeout"`
|
||||
}
|
||||
|
||||
// Jellyfin — пересканирование медиатеки после раскладки (опц.). Включается
|
||||
// конфигом; без него скан не дёргается.
|
||||
type Jellyfin struct {
|
||||
Enabled bool `toml:"enabled"`
|
||||
URL string `toml:"url"`
|
||||
APIKey string `toml:"api_key"`
|
||||
Proxy string `toml:"proxy"` // опц. HTTP-прокси
|
||||
Timeout Duration `toml:"timeout"`
|
||||
}
|
||||
|
||||
// Worker — параметры фонового цикла.
|
||||
type Worker struct {
|
||||
PollInterval Duration `toml:"poll_interval"`
|
||||
@@ -155,6 +166,7 @@ func Default() *Config {
|
||||
TMDB: MetadataProvider{Timeout: Duration(10 * time.Second)},
|
||||
TVDB: MetadataProvider{Timeout: Duration(10 * time.Second)},
|
||||
},
|
||||
Jellyfin: Jellyfin{Timeout: Duration(10 * time.Second)},
|
||||
Worker: Worker{
|
||||
PollInterval: Duration(5 * time.Second),
|
||||
StuckAfter: Duration(time.Hour),
|
||||
|
||||
Reference in New Issue
Block a user