Change default settings

pull/222/head
Halali 6 years ago
parent b0cca15254
commit 9aba6cad49

@ -67,7 +67,7 @@ def get_general_settings():
if cfg.has_option('general', 'use_scenename'):
use_scenename = cfg.getboolean('general', 'use_scenename')
else:
use_scenename = False
use_scenename = True
if cfg.has_option('general', 'use_postprocessing'):
use_postprocessing = cfg.getboolean('general', 'use_postprocessing')
@ -137,7 +137,7 @@ def get_general_settings():
if cfg.has_option('general', 'use_embedded_subs'):
use_embedded_subs = cfg.getboolean('general', 'use_embedded_subs')
else:
use_embedded_subs = False
use_embedded_subs = True
if cfg.has_option('general', 'only_monitored'):
only_monitored = cfg.getboolean('general', 'only_monitored')
@ -159,7 +159,7 @@ def get_general_settings():
auto_update = True
single_language = False
minimum_score = '90'
use_scenename = False
use_scenename = True
use_postprocessing = False
postprocessing_cmd = ''
use_sonarr = False
@ -173,7 +173,7 @@ def get_general_settings():
movie_default_hi = 'False'
page_size = '25'
minimum_score_movie = '70'
use_embedded_subs = False
use_embedded_subs = True
only_monitored = False
adaptive_searching = False

@ -274,15 +274,15 @@ def save_settings():
settings_general_scenename = request.forms.get('settings_general_scenename')
if settings_general_scenename is None:
settings_general_scenename = 'False'
else:
settings_general_scenename = 'True'
else:
settings_general_scenename = 'False'
settings_general_embedded = request.forms.get('settings_general_embedded')
if settings_general_embedded is None:
settings_general_embedded = 'False'
else:
settings_general_embedded = 'True'
else:
settings_general_embedded = 'False'
settings_general_adaptive_searching = request.forms.get('settings_general_adaptive_searching')
if settings_general_adaptive_searching is None:
@ -1087,14 +1087,14 @@ def save_settings():
settings_general_single_language = 'True'
settings_general_scenename = request.forms.get('settings_general_scenename')
if settings_general_scenename is None:
settings_general_scenename = 'False'
else:
settings_general_scenename = 'True'
else:
settings_general_scenename = 'False'
settings_general_embedded = request.forms.get('settings_general_embedded')
if settings_general_embedded is None:
settings_general_embedded = 'False'
else:
settings_general_embedded = 'True'
else:
settings_general_embedded = 'False'
settings_general_only_monitored = request.forms.get('settings_general_only_monitored')
if settings_general_only_monitored is None:
settings_general_only_monitored = 'False'

@ -341,7 +341,7 @@
<label>Use scene name when available</label>
</div>
<div class="one wide column">
<div id="settings_scenename" class="ui toggle checkbox">
<div id="settings_scenename" class="ui toggle checkbox" data-scenename={{settings_general[9]}}>
<input name="settings_general_scenename" type="checkbox">
<label></label>
</div>
@ -360,7 +360,7 @@
<label>Use embedded subtitles</label>
</div>
<div class="one wide column">
<div id="settings_embedded" class="ui toggle checkbox">
<div id="settings_embedded" class="ui toggle checkbox" data-embedded={{settings_general[23]}}>
<input name="settings_general_embedded" type="checkbox">
<label></label>
</div>
@ -410,7 +410,7 @@
<label>Single language</label>
</div>
<div class="one wide column">
<div id="settings_single_language" class="ui toggle checkbox">
<div id="settings_single_language" class="ui toggle checkbox" data-single-language={{settings_general[7]}}>
<input name="settings_general_single_language" type="checkbox">
<label></label>
</div>

Loading…
Cancel
Save