summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bazarr/config.py9
-rw-r--r--bazarr/database.py4
-rw-r--r--frontend/src/Settings/Sonarr/index.tsx10
3 files changed, 19 insertions, 4 deletions
diff --git a/bazarr/config.py b/bazarr/config.py
index 7c4fb8ba4..62eba3088 100644
--- a/bazarr/config.py
+++ b/bazarr/config.py
@@ -94,7 +94,8 @@ defaults = {
'episodes_sync': '60',
'excluded_tags': '[]',
'excluded_series_types': '[]',
- 'use_ffprobe_cache': 'True'
+ 'use_ffprobe_cache': 'True',
+ 'exclude_season_zero': 'False'
},
'radarr': {
'ip': '127.0.0.1',
@@ -395,12 +396,12 @@ def save_settings(settings_items):
configure_proxy = True
if key in ['settings-sonarr-excluded_tags', 'settings-sonarr-only_monitored',
- 'settings-sonarr-excluded_series_types', 'settings.radarr.excluded_tags',
- 'settings-radarr-only_monitored']:
+ 'settings-sonarr-excluded_series_types', 'settings-sonarr-exclude_season_zero',
+ 'settings.radarr.excluded_tags', 'settings-radarr-only_monitored']:
exclusion_updated = True
if key in ['settings-sonarr-excluded_tags', 'settings-sonarr-only_monitored',
- 'settings-sonarr-excluded_series_types']:
+ 'settings-sonarr-excluded_series_types', 'settings-sonarr-exclude_season_zero']:
sonarr_exclusion_updated = True
if key in ['settings.radarr.excluded_tags', 'settings-radarr-only_monitored']:
diff --git a/bazarr/database.py b/bazarr/database.py
index b80c1ee7d..03ce0756b 100644
--- a/bazarr/database.py
+++ b/bazarr/database.py
@@ -390,6 +390,10 @@ def get_exclusion_clause(exclusion_type):
for item in typesList:
where_clause.append((TableShows.seriesType != item))
+ exclude_season_zero = settings.sonarr.getboolean('exclude_season_zero')
+ if exclude_season_zero:
+ where_clause.append((TableEpisodes.season != 0))
+
return where_clause
diff --git a/frontend/src/Settings/Sonarr/index.tsx b/frontend/src/Settings/Sonarr/index.tsx
index 6f9140d35..75ae9b3a1 100644
--- a/frontend/src/Settings/Sonarr/index.tsx
+++ b/frontend/src/Settings/Sonarr/index.tsx
@@ -97,6 +97,16 @@ const SettingsSonarrView: FunctionComponent<Props> = () => {
episodes in Sonarr.
</Message>
</Input>
+ <Input>
+ <Check
+ label="Exclude season zero (extras)"
+ settingKey="settings-sonarr-exclude_season_zero"
+ ></Check>
+ <Message>
+ Episodes from season zero (extras) from automatic download of
+ subtitles.
+ </Message>
+ </Input>
</Group>
<Group header="Path Mappings">
<PathMappingTable type="sonarr"></PathMappingTable>