Add setting migration for throttling_providers

pull/380/head
Halali 6 years ago
parent 2b607570af
commit 229a9672e3

@ -26,7 +26,7 @@ defaults = {
'serie_default_language': '[]',
'serie_default_hi': 'False',
'movie_default_enabled': 'False',
'movie_default_language': [],
'movie_default_language': '[]',
'movie_default_hi': 'False',
'page_size': '25',
'minimum_score_movie': '70',

@ -127,10 +127,14 @@ try:
settings.general.enabled_providers = u'' if not providers_list else ','.join(providers_list)
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
settings.write(handle)
except:
pass
if settings.general.throtteled_providers == '' or None:
settings.general.throtteled_providers = '{}'
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
settings.write(handle)
if not os.path.exists(os.path.normpath(os.path.join(args.config_dir, 'config', 'users.json'))):
cork = Cork(os.path.normpath(os.path.join(args.config_dir, 'config')), initialize=True)

Loading…
Cancel
Save