Merge pull request #569 from JackDandy/feature/ChangePlexNotif

Change improve the use of multiple plex servers.
This commit is contained in:
JackDandy 2015-11-21 02:02:58 +00:00
commit eb22e7624d
2 changed files with 2 additions and 1 deletions

View file

@ -76,6 +76,7 @@
* Add Code Climate configuration files
* Change to move init-scripts to single folder
* Change sickbeard variables to sickgear variables in init-scripts
* Change improve the use of multiple plex servers
[develop changelog]
Enable Alpha Ratio again now that the secure login page over https is fixed

View file

@ -247,7 +247,7 @@ class PLEXNotifier:
if section_path in location_path:
hosts_match.update(keyed_host)
hosts_try = (hosts_all.copy(), hosts_match.copy())[len(hosts_match)]
hosts_try = (hosts_all.copy(), hosts_match.copy())[any(hosts_match)]
host_list = []
for section_key, cur_host in hosts_try.items():