aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2019-01-13 21:54:26 -0500
committermorpheus65535 <[email protected]>2019-01-13 21:54:26 -0500
commit9bcbd79f7869228c839c2b57852746bf9c0c3673 (patch)
tree7b9e344ef5a4cb6924e6d3e540f524bdbe34c051
parentd936a4313ebe3d2d2e719abc025dd9a75f65e8a2 (diff)
parent94b967282d287601feec713f9b0fa632010a1c96 (diff)
downloadbazarr-0.7.0.tar.gz
bazarr-0.7.0.zip
Merge remote-tracking branch 'origin/development' into developmentv0.7.0
-rw-r--r--bazarr/get_subtitle.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py
index 1ccf037d8..39720219e 100644
--- a/bazarr/get_subtitle.py
+++ b/bazarr/get_subtitle.py
@@ -486,14 +486,19 @@ def wanted_search_missing_subtitles():
c = db.cursor()
if settings.sonarr.getboolean('only_monitored'):
- monitored_only_query_string = ' AND monitored = "True"'
+ monitored_only_query_string_sonarr = ' AND monitored = "True"'
else:
- monitored_only_query_string = ""
+ monitored_only_query_string_sonarr = ""
+
+ if settings.radarr.getboolean('only_monitored'):
+ monitored_only_query_string_radarr = ' AND monitored = "True"'
+ else:
+ monitored_only_query_string_radarr = ""
- c.execute("SELECT path_substitution(path) FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string)
+ c.execute("SELECT path_substitution(path) FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string_sonarr)
episodes = c.fetchall()
- c.execute("SELECT path_substitution_movie(path) FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string)
+ c.execute("SELECT path_substitution_movie(path) FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string_radarr)
movies = c.fetchall()
c.close()