Ignore empty Plex Collections

- Fixes #184
This commit is contained in:
tomkat83 2017-01-24 20:55:01 +01:00
parent 307e8e5b61
commit d9b83065e3

View file

@ -1291,6 +1291,7 @@ class API():
collections = [] collections = []
for child in self.item: for child in self.item:
if child.tag == 'Collection': if child.tag == 'Collection':
if child.attrib['tag']:
collections.append(child.attrib['tag']) collections.append(child.attrib['tag'])
return collections return collections