@ -325,31 +325,31 @@ def save_wizard():
settings_subliminal_providers = request . forms . getall ( ' settings_subliminal_providers ' )
settings . general . enabled_providers = u ' ' if not settings_subliminal_providers else ' , ' . join (
settings_subliminal_providers )
settings_addic7ed_random_agents = request . forms . get ( ' settings_addic7ed_random_agents ' )
if settings_addic7ed_random_agents is None :
settings_addic7ed_random_agents = ' False '
else :
settings_addic7ed_random_agents = ' True '
settings_opensubtitles_vip = request . forms . get ( ' settings_opensubtitles_vip ' )
if settings_opensubtitles_vip is None :
settings_opensubtitles_vip = ' False '
else :
settings_opensubtitles_vip = ' True '
settings_opensubtitles_ssl = request . forms . get ( ' settings_opensubtitles_ssl ' )
if settings_opensubtitles_ssl is None :
settings_opensubtitles_ssl = ' False '
else :
settings_opensubtitles_ssl = ' True '
settings_opensubtitles_skip_wrong_fps = request . forms . get ( ' settings_opensubtitles_skip_wrong_fps ' )
if settings_opensubtitles_skip_wrong_fps is None :
settings_opensubtitles_skip_wrong_fps = ' False '
else :
settings_opensubtitles_skip_wrong_fps = ' True '
settings . addic7ed . username = request . forms . get ( ' settings_addic7ed_username ' )
settings . addic7ed . password = request . forms . get ( ' settings_addic7ed_password ' )
settings . addic7ed . random_agents = text_type ( settings_addic7ed_random_agents )
@ -1300,25 +1300,25 @@ def save_settings():
settings_subliminal_providers = request . forms . getall ( ' settings_subliminal_providers ' )
settings . general . enabled_providers = u ' ' if not settings_subliminal_providers else ' , ' . join (
settings_subliminal_providers )
settings_addic7ed_random_agents = request . forms . get ( ' settings_addic7ed_random_agents ' )
if settings_addic7ed_random_agents is None :
settings_addic7ed_random_agents = ' False '
else :
settings_addic7ed_random_agents = ' True '
settings_opensubtitles_vip = request . forms . get ( ' settings_opensubtitles_vip ' )
if settings_opensubtitles_vip is None :
settings_opensubtitles_vip = ' False '
else :
settings_opensubtitles_vip = ' True '
settings_opensubtitles_ssl = request . forms . get ( ' settings_opensubtitles_ssl ' )
if settings_opensubtitles_ssl is None :
settings_opensubtitles_ssl = ' False '
else :
settings_opensubtitles_ssl = ' True '
settings_opensubtitles_skip_wrong_fps = request . forms . get ( ' settings_opensubtitles_skip_wrong_fps ' )
if settings_opensubtitles_skip_wrong_fps is None :
settings_opensubtitles_skip_wrong_fps = ' False '
@ -1337,7 +1337,6 @@ def save_settings():
settings . opensubtitles . ssl = text_type ( settings_opensubtitles_ssl )
settings . opensubtitles . skip_wrong_fps = text_type ( settings_opensubtitles_skip_wrong_fps )
settings_subliminal_languages = request . forms . getall ( ' settings_subliminal_languages ' )
c . execute ( " UPDATE table_settings_languages SET enabled = 0 " )
for item in settings_subliminal_languages :
@ -1407,7 +1406,7 @@ def save_settings():
# reschedule full update task according to settings
sonarr_full_update ( )
if ref . find ( ' saved=true ' ) > 0 :
redirect ( ref )
else :