From c2f74465e9c079e288656bfce04e052dd52dd787 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 28 Feb 2022 06:51:27 -0500 Subject: Fixed cache invalidation on providers' password changes. --- bazarr/config.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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) -- cgit v1.2.3