From d9b83065e357e0639ab7bc45c835d0a9f25e3c7b Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 24 Jan 2017 20:55:01 +0100 Subject: [PATCH] Ignore empty Plex Collections - Fixes #184 --- resources/lib/PlexAPI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 964bb96d..9ad791f2 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -1291,7 +1291,8 @@ class API(): collections = [] for child in self.item: if child.tag == 'Collection': - collections.append(child.attrib['tag']) + if child.attrib['tag']: + collections.append(child.attrib['tag']) return collections def getPeople(self):