1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 01:57:33 +00:00
This commit is contained in:
Louis Vézina 2020-10-10 10:26:56 -04:00
parent 2211cc9957
commit 9d6110fd37

View file

@ -2,6 +2,8 @@
import hashlib
import os
from subliminal.cache import region
from simpleconfigparser import simpleconfigparser
from get_args import args
@ -234,6 +236,26 @@ def save_settings(settings_items):
'settings-radarr-only_monitored']:
exclusion_updated = True
if key == 'settings-addic7ed-username':
if key != settings.addic7ed.username:
region.delete('addic7ed_data')
if key == 'settings-legendasdivx-username':
if key != settings.legendasdivx.username:
region.delete('legendasdivx_cookies2')
if key == 'settings-opensubtitles-username':
if key != settings.opensubtitles.username:
region.delete('os_token')
if key == 'settings-subscene-username':
if key != settings.subscene.username:
region.delete('subscene_cookies2')
if key == 'settings-titlovi-username':
if key != settings.titlovi.username:
region.delete('titlovi_token')
if settings_keys[0] == 'settings':
settings[settings_keys[1]][settings_keys[2]] = str(value)