Fix issue saving custom NewznabProviders.

This commit is contained in:
Prinz23 2017-02-24 18:24:06 +01:00 committed by JackDandy
parent ef87caee00
commit 85ef0a6787
2 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,9 @@
### 0.12.8 (2017-02-19 13:50:00 UTC)
### 0.12.9 (2017-02-24 18:40:00 UTC)
* Fix issue saving custom NewznabProviders
### 0.12.8 (2017-02-19 13:50:00 UTC)
* Change BTN API hostname

View file

@ -98,9 +98,9 @@ class NewznabProvider(generic.NZBProvider):
self.cat_ids = cat_ids or ''
self._cat_ids = None
self.search_mode = search_mode or 'eponly'
self.search_fallback = search_fallback
self.enable_recentsearch = enable_recentsearch
self.enable_backlog = enable_backlog
self.search_fallback = bool(helpers.tryInt(search_fallback))
self.enable_recentsearch = bool(helpers.tryInt(enable_recentsearch))
self.enable_backlog = bool(helpers.tryInt(enable_backlog))
self.needs_auth = '0' != self.key.strip() # '0' in the key setting indicates that api_key is not needed
self.default = False
self._caps = {}