Skip to content

Commit

Permalink
- added scan Plex library for new files after downloading subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
destpstrzy committed Jan 25, 2025
1 parent 756c028 commit ef0cdc9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bazarr/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def check_parser_binary(value):
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.series_library', must_exist=True, default='', is_type_of=str),
Validator('plex.set_added', must_exist=True, default=False, is_type_of=bool),
Validator('plex.set_movie_added', must_exist=True, default=False, is_type_of=bool),
Validator('plex.set_episode_added', must_exist=True, default=False, is_type_of=bool),
Validator('plex.update_movie_library', must_exist=True, default=False, is_type_of=bool),
Validator('plex.update_series_library', must_exist=True, default=False, is_type_of=bool),
Expand Down
2 changes: 1 addition & 1 deletion bazarr/subtitles/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def process_subtitle(subtitle, media_type, audio_language, path, max_score, is_u
notify_radarr(movie_metadata.radarrId)
event_stream(type='movie-wanted', action='delete', payload=movie_metadata.radarrId)
if settings.general.use_plex is True:
if settings.plex.set_added is True:
if settings.plex.set_movie_added is True:
plex_set_movie_added_date_now(movie_metadata)
if settings.plex.update_movie_library is True:
plex_update_library(is_movie_library=True)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Settings/Plex/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SettingsPlexView: FunctionComponent = () => {
></Text>
<Check
label="Mark the movie as recently added after downloading subtitles"
settingKey="settings-plex-set_added"
settingKey="settings-plex-set_movie_added"
></Check>
<Check
label="Scan library for new files after downloading subtitles"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types/settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ declare namespace Settings {
port: number;
apikey?: string;
ssl?: boolean;
set_added?: boolean;
set_movie_added?: boolean;
set_episode_added?: boolean;
movie_library?: string;
series_library?: string;
Expand Down

0 comments on commit ef0cdc9

Please sign in to comment.