diff --git a/plexapi/base.py b/plexapi/base.py index 4e6d59d8b..5b8b00a60 100644 --- a/plexapi/base.py +++ b/plexapi/base.py @@ -439,7 +439,7 @@ def _getAttrValue(self, elem, attrstr, results=None): attrstr = parts[1] if len(parts) == 2 else None if attrstr: results = [] if results is None else results - for child in [c for c in elem if c.tag.lower() == attr.lower()]: + for child in (c for c in elem if c.tag.lower() == attr.lower()): results += self._getAttrValue(child, attrstr, results) return [r for r in results if r is not None] # check were looking for the tag