summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-06-28 05:47:17 -0400
committermorpheus65535 <[email protected]>2018-06-28 05:47:17 -0400
commitf948814696e50bb7c8c172d168fcb599864e4b63 (patch)
treedbe111fe8329a1ff9e6173bf129d399dd9e1f636 /bazarr.py
parent74403be4e84ea1c4d165d994dc7487ae3556f234 (diff)
downloadbazarr-f948814696e50bb7c8c172d168fcb599864e4b63.tar.gz
bazarr-f948814696e50bb7c8c172d168fcb599864e4b63.zip
Fix a bug in with single language mode enabled #78
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bazarr.py b/bazarr.py
index fe0771171..f85796d71 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -753,6 +753,8 @@ def save_settings():
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'))
+ if settings_serie_default_languages == "['None']":
+ settings_serie_default_languages = 'None'
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')
@@ -770,6 +772,8 @@ def save_settings():
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'))
+ if settings_movie_default_languages == "['None']":
+ settings_movie_default_languages = 'None'
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')