From 0c0bf3ab78202984a67022ea873bcb5f252fabcb Mon Sep 17 00:00:00 2001 From: destpstrzy Date: Thu, 23 Jan 2025 14:01:59 +0100 Subject: [PATCH] Change Plex 'added' after subtitles download (https://bazarr.featureupvote.com/suggestions/592703/change-plex-added-after-subtitles-download): - To activate this option, you need to go to the new Plex settings in the sidebar and enter your Plex server details. - After subtitles are downloaded, the 'added date' for the movie will be set to the current time. This helps with discovering movies in situations where you downloaded a movie some time ago and subtitles become available now. --- bazarr/app/config.py | 3 ++ frontend/src/pages/Settings/Plex/options.ts | 43 --------------------- 2 files changed, 3 insertions(+), 43 deletions(-) delete mode 100644 frontend/src/pages/Settings/Plex/options.ts diff --git a/bazarr/app/config.py b/bazarr/app/config.py index 47be1b7cd..2e65d5913 100644 --- a/bazarr/app/config.py +++ b/bazarr/app/config.py @@ -219,6 +219,9 @@ validators = [ Validator('plex.ip', must_exist=True, default='127.0.0.1', is_type_of=str), Validator('plex.port', must_exist=True, default=32400, is_type_of=int, gte=1, lte=65535), Validator('plex.ssl', must_exist=True, default=False, is_type_of=bool), + Validator('plex.apikey', must_exist=True, default='', is_type_of=str), + Validator('plex.movie_library', must_exist=True, default='', is_type_of=str), + Validator('plex.set_added', must_exist=True, default=False, is_type_of=bool), # proxy section Validator('proxy.type', must_exist=True, default=None, is_type_of=(NoneType, str), diff --git a/frontend/src/pages/Settings/Plex/options.ts b/frontend/src/pages/Settings/Plex/options.ts deleted file mode 100644 index 47687c657..000000000 --- a/frontend/src/pages/Settings/Plex/options.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { SelectorOption } from "@/components"; - -export const pageSizeOptions: SelectorOption[] = [ - { - label: "25", - value: 25, - }, - { - label: "50", - value: 50, - }, - { - label: "100", - value: 100, - }, - { - label: "250", - value: 250, - }, - { - label: "500", - value: 500, - }, - { - label: "1000", - value: 1000, - }, -]; - -export const colorSchemeOptions: SelectorOption[] = [ - { - label: "Auto", - value: "auto", - }, - { - label: "Light", - value: "light", - }, - { - label: "Dark", - value: "dark", - }, -];