diff options
author | morpheus65535 <[email protected]> | 2018-07-29 22:39:37 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-07-29 22:39:37 -0400 |
commit | 3d98836f3b84cc52ba66de0186cba71689d33749 (patch) | |
tree | d24b3c7244222381c4380811209e6dc25bdb49aa /bazarr.py | |
parent | 12d8e8b840a9ed7b8194b417b198fd584971f648 (diff) | |
download | bazarr-3d98836f3b84cc52ba66de0186cba71689d33749.tar.gz bazarr-3d98836f3b84cc52ba66de0186cba71689d33749.zip |
Aded option to ignore embedded subtitles #69
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -682,6 +682,11 @@ def save_settings(): settings_general_scenename = 'False'
else:
settings_general_scenename = 'True'
+ settings_general_embedded = request.forms.get('settings_general_embedded')
+ if settings_general_embedded is None:
+ settings_general_embedded = 'False'
+ else:
+ settings_general_embedded = 'True'
settings_general_minimum_score = request.forms.get('settings_general_minimum_score')
settings_general_use_postprocessing = request.forms.get('settings_general_use_postprocessing')
if settings_general_use_postprocessing is None:
@@ -703,7 +708,7 @@ def save_settings(): before = c.execute("SELECT ip, port, base_url, log_level, path_mapping, use_sonarr, use_radarr, path_mapping_movie FROM table_settings_general").fetchone()
after = (unicode(settings_general_ip), int(settings_general_port), unicode(settings_general_baseurl), unicode(settings_general_loglevel), unicode(settings_general_pathmapping), unicode(settings_general_use_sonarr), unicode(settings_general_use_radarr), unicode(settings_general_pathmapping_movie))
- c.execute("UPDATE table_settings_general SET ip = ?, port = ?, base_url = ?, path_mapping = ?, log_level = ?, branch=?, auto_update=?, single_language=?, minimum_score=?, use_scenename=?, use_postprocessing=?, postprocessing_cmd=?, use_sonarr=?, use_radarr=?, path_mapping_movie=?, page_size=?", (unicode(settings_general_ip), int(settings_general_port), unicode(settings_general_baseurl), unicode(settings_general_pathmapping), unicode(settings_general_loglevel), unicode(settings_general_branch), unicode(settings_general_automatic), unicode(settings_general_single_language), unicode(settings_general_minimum_score), unicode(settings_general_scenename), unicode(settings_general_use_postprocessing), unicode(settings_general_postprocessing_cmd), unicode(settings_general_use_sonarr), unicode(settings_general_use_radarr), unicode(settings_general_pathmapping_movie), unicode(settings_page_size)))
+ c.execute("UPDATE table_settings_general SET ip = ?, port = ?, base_url = ?, path_mapping = ?, log_level = ?, branch=?, auto_update=?, single_language=?, minimum_score=?, use_scenename=?, use_postprocessing=?, postprocessing_cmd=?, use_sonarr=?, use_radarr=?, path_mapping_movie=?, page_size=?, use_embedded_subs=?", (unicode(settings_general_ip), int(settings_general_port), unicode(settings_general_baseurl), unicode(settings_general_pathmapping), unicode(settings_general_loglevel), unicode(settings_general_branch), unicode(settings_general_automatic), unicode(settings_general_single_language), unicode(settings_general_minimum_score), unicode(settings_general_scenename), unicode(settings_general_use_postprocessing), unicode(settings_general_postprocessing_cmd), unicode(settings_general_use_sonarr), unicode(settings_general_use_radarr), unicode(settings_general_pathmapping_movie), unicode(settings_page_size), unicode(settings_general_embedded)))
conn.commit()
if after != before:
configured()
|