diff options
author | morpheus65535 <[email protected]> | 2018-06-28 05:47:17 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-06-28 05:47:17 -0400 |
commit | f948814696e50bb7c8c172d168fcb599864e4b63 (patch) | |
tree | dbe111fe8329a1ff9e6173bf129d399dd9e1f636 /bazarr.py | |
parent | 74403be4e84ea1c4d165d994dc7487ae3556f234 (diff) | |
download | bazarr-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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')
|