summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-02-28 06:51:27 -0500
committermorpheus65535 <[email protected]>2022-02-28 06:51:27 -0500
commitc2f74465e9c079e288656bfce04e052dd52dd787 (patch)
tree367ddcf60aef7382002e01d0d3d92f87f8bf8b7f
parente4c666f82b2dacc7d2d969a3b9ffed54567604e8 (diff)
downloadbazarr-c2f74465e9c079e288656bfce04e052dd52dd787.tar.gz
bazarr-c2f74465e9c079e288656bfce04e052dd52dd787.zip
Fixed cache invalidation on providers' password changes.
-rw-r--r--bazarr/config.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/bazarr/config.py b/bazarr/config.py
index cfe29c3f4..b27c80b5e 100644
--- a/bazarr/config.py
+++ b/bazarr/config.py
@@ -424,26 +424,44 @@ def save_settings(settings_items):
if key == 'settings-addic7ed-username':
if key != settings.addic7ed.username:
region.delete('addic7ed_data')
+ elif key == 'settings-addic7ed-password':
+ if key != settings.addic7ed.password:
+ region.delete('addic7ed_data')
if key == 'settings-legendasdivx-username':
if key != settings.legendasdivx.username:
region.delete('legendasdivx_cookies2')
+ elif key == 'settings-legendasdivx-password':
+ if key != settings.legendasdivx.password:
+ region.delete('legendasdivx_cookies2')
if key == 'settings-opensubtitles-username':
if key != settings.opensubtitles.username:
region.delete('os_token')
+ elif key == 'settings-opensubtitles-password':
+ if key != settings.opensubtitles.password:
+ region.delete('os_token')
if key == 'settings-opensubtitlescom-username':
if key != settings.opensubtitlescom.username:
region.delete('oscom_token')
+ elif key == 'settings-opensubtitlescom-password':
+ if key != settings.opensubtitlescom.password:
+ region.delete('oscom_token')
if key == 'settings-subscene-username':
if key != settings.subscene.username:
region.delete('subscene_cookies2')
+ elif key == 'settings-subscene-password':
+ if key != settings.subscene.password:
+ region.delete('subscene_cookies2')
if key == 'settings-titlovi-username':
if key != settings.titlovi.username:
region.delete('titlovi_token')
+ elif key == 'settings-titlovi-password':
+ if key != settings.titlovi.password:
+ region.delete('titlovi_token')
if settings_keys[0] == 'settings':
settings[settings_keys[1]][settings_keys[2]] = str(value)