mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
Fix for #1144
This commit is contained in:
parent
2211cc9957
commit
9d6110fd37
1 changed files with 22 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from subliminal.cache import region
|
||||||
|
|
||||||
from simpleconfigparser import simpleconfigparser
|
from simpleconfigparser import simpleconfigparser
|
||||||
|
|
||||||
from get_args import args
|
from get_args import args
|
||||||
|
@ -234,6 +236,26 @@ def save_settings(settings_items):
|
||||||
'settings-radarr-only_monitored']:
|
'settings-radarr-only_monitored']:
|
||||||
exclusion_updated = True
|
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':
|
if settings_keys[0] == 'settings':
|
||||||
settings[settings_keys[1]][settings_keys[2]] = str(value)
|
settings[settings_keys[1]][settings_keys[2]] = str(value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue