Skip to content

Commit 165c19f

Browse files
committed
if mediaType is in initpath also capture name
1 parent 54a88da commit 165c19f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plexapi/media.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ def _loadData(self, data):
685685
self.primary = data.attrib.get('primary')
686686
self.shortIdentifier = self.identifier.rsplit('.', 1)[1]
687687
if 'mediaType' in self._initpath:
688+
self.name = data.attrib.get('name')
688689
self.languageCode = []
689690
for code in data:
690691
self.languageCode += [code.attrib.get('code')]

0 commit comments

Comments
 (0)