Fix Media Providers/Custom Newznab tab action 'Delete' then 'Save Changes'.

This commit is contained in:
JackDandy 2017-09-29 00:20:06 +01:00
parent da1cab1e39
commit a087a464eb
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,9 @@
### 0.12.29 (2017-09-17 09:00:00 UTC)
### 0.12.30 (2017-09-29 00:20:00 UTC)
* Fix Media Providers/Custom Newznab tab action 'Delete' then 'Save Changes'
### 0.12.29 (2017-09-17 09:00:00 UTC)
* Fix provider nCore
* Change .torrent checker due to files created with qB 3.3.16 (affects nCore and NBL)

View file

@ -5364,7 +5364,8 @@ class ConfigProviders(Config):
provider_list.append(src_name)
src_enabled = bool(config.to_int(src_enabled))
if '' != getattr(sources[src_name], 'enabled', '') and sources[src_name].is_enabled() != src_enabled:
if src_name in sources and '' != getattr(sources[src_name], 'enabled', '') \
and sources[src_name].is_enabled() != src_enabled:
sources[src_name].enabled = src_enabled
if not reload_page and sickbeard.GenericProvider.TORRENT == sources[src_name].providerType:
reload_page = True