summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-06-26 22:47:58 -0400
committermorpheus65535 <[email protected]>2018-06-26 22:47:58 -0400
commit26e9a81eef06d5e8b2e1039dc1017d380486b29a (patch)
treef2920d58c863d1a7474ae2cc19e8b858cbc06412 /bazarr.py
parent4ae8ff7ab730d0d541c8302be0a4aca9865459df (diff)
downloadbazarr-26e9a81eef06d5e8b2e1039dc1017d380486b29a.tar.gz
bazarr-26e9a81eef06d5e8b2e1039dc1017d380486b29a.zip
Implenting series and movies default values #78
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/bazarr.py b/bazarr.py
index 1cd0237ef..6bae38d3e 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -745,6 +745,40 @@ def save_settings():
for item in settings_subliminal_languages:
c.execute("UPDATE table_settings_languages SET enabled = '1' WHERE code2 = ?", (item,))
+ settings_serie_default_enabled = request.forms.get('settings_serie_default_enabled')
+ if settings_serie_default_enabled is None:
+ settings_serie_default_enabled = 'False'
+ else:
+ settings_serie_default_enabled = 'True'
+ c.execute("UPDATE table_settings_general SET serie_default_enabled = ?", (settings_serie_default_enabled,))
+
+ settings_serie_default_languages = str(request.forms.getall('settings_serie_default_languages'))
+ c.execute("UPDATE table_settings_general SET serie_default_languages = ?", (settings_serie_default_languages,))
+
+ settings_serie_default_hi = request.forms.get('settings_serie_default_hi')
+ if settings_serie_default_hi is None:
+ settings_serie_default_hi = 'False'
+ else:
+ settings_serie_default_hi = 'True'
+ c.execute("UPDATE table_settings_general SET serie_default_hi = ?", (settings_serie_default_hi,))
+
+ settings_movie_default_enabled = request.forms.get('settings_movie_default_enabled')
+ if settings_movie_default_enabled is None:
+ settings_movie_default_enabled = 'False'
+ else:
+ settings_movie_default_enabled = 'True'
+ c.execute("UPDATE table_settings_general SET movie_default_enabled = ?", (settings_movie_default_enabled,))
+
+ settings_movie_default_languages = str(request.forms.getall('settings_movie_default_languages'))
+ c.execute("UPDATE table_settings_general SET movie_default_languages = ?", (settings_movie_default_languages,))
+
+ settings_movie_default_hi = request.forms.get('settings_movie_default_hi')
+ if settings_movie_default_hi is None:
+ settings_movie_default_hi = 'False'
+ else:
+ settings_movie_default_hi = 'True'
+ c.execute("UPDATE table_settings_general SET movie_default_hi = ?", (settings_movie_default_hi,))
+
settings_notifier_Boxcar_enabled = request.forms.get('settings_notifier_Boxcar_enabled')
if settings_notifier_Boxcar_enabled == 'on':
settings_notifier_Boxcar_enabled = 1