Private GIT

Skip to content
Snippets Groups Projects
Commit 3af0b9d2 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Plex host tuple index fix ref: SiCKRAGETV/sickrage-issues/issues/1637

parent b402a4fd
No related branches found
No related tags found
No related merge requests found
...@@ -257,7 +257,7 @@ class PLEXNotifier: ...@@ -257,7 +257,7 @@ class PLEXNotifier:
if section_path in location_path: if section_path in location_path:
hosts_match.update(keyed_host) hosts_match.update(keyed_host)
hosts_try = (hosts_all.copy(), hosts_match.copy())[len(hosts_match)] hosts_try = (hosts_all.copy(), hosts_match.copy())[bool(hosts_match)]
host_list = [] host_list = []
for section_key, cur_host in hosts_try.iteritems(): for section_key, cur_host in hosts_try.iteritems():
...@@ -269,7 +269,7 @@ class PLEXNotifier: ...@@ -269,7 +269,7 @@ class PLEXNotifier:
logger.log(u'PLEX: Error updating library section for Plex Media Server: ' + ex(e), logger.WARNING) logger.log(u'PLEX: Error updating library section for Plex Media Server: ' + ex(e), logger.WARNING)
hosts_failed.append(cur_host) hosts_failed.append(cur_host)
if len(hosts_match): if hosts_match:
logger.log(u'PLEX: Updating hosts where TV section paths match the downloaded show: ' + ', '.join(set(host_list)), logger.DEBUG) logger.log(u'PLEX: Updating hosts where TV section paths match the downloaded show: ' + ', '.join(set(host_list)), logger.DEBUG)
else: else:
logger.log(u'PLEX: Updating all hosts with TV sections: ' + ', '.join(set(host_list)), logger.DEBUG) logger.log(u'PLEX: Updating all hosts with TV sections: ' + ', '.join(set(host_list)), logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment