|
|
|
@ -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)
|
|
|
|
|