diff options
author | halali <[email protected]> | 2018-08-27 02:53:02 +0200 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-08-26 20:53:02 -0400 |
commit | 53f3338ef7940313580a18d44ed903c5e4669fc7 (patch) | |
tree | 537d7e1e9926862a259328ce2bb20c2287cdc945 /bazarr.py | |
parent | 1c1aec5a063c26de0e2e276b4f2ff0b51ae07511 (diff) | |
download | bazarr-53f3338ef7940313580a18d44ed903c5e4669fc7.tar.gz bazarr-53f3338ef7940313580a18d44ed903c5e4669fc7.zip |
Adaptive searching (#130)
* Move settings from Database to Config file
* Delete unused config and forgot upload init
* Fix
* Update get_subtitles and fix provider auth
* Revert "Update get_subtitles and fix provider auth"
This reverts commit c904bf6b5a61b291d4e5764a885578e66ae7d5d3.
* Update get_sebtitles
* more fixes
* Update requirements
* Initial Commit
* Finished
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -755,6 +755,11 @@ def save_settings(): settings_general_only_monitored = 'False' else: settings_general_only_monitored = 'True' + settings_general_adaptive_searching = request.forms.get('settings_general_adaptive_searching') + if settings_general_adaptive_searching is None: + settings_general_adaptive_searching = 'False' + else: + settings_general_adaptive_searching = 'True' settings_general_minimum_score = request.forms.get('settings_general_minimum_score') settings_general_minimum_score_movies = request.forms.get('settings_general_minimum_score_movies') settings_general_use_postprocessing = request.forms.get('settings_general_use_postprocessing') @@ -805,8 +810,8 @@ def save_settings(): cfg.set('general', 'minimum_score_movie', text_type(settings_general_minimum_score_movies)) cfg.set('general', 'use_embedded_subs', text_type(settings_general_embedded)) cfg.set('general', 'only_monitored', text_type(settings_general_only_monitored)) - # cfg.set('general', 'configured', text_type(configured)) - # cfg.set('general', 'updated', text_type(updated)) + cfg.set('general', 'adaptive_searching', text_type(settings_general_adaptive_searching)) + if after != before: configured() |