We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40d1da commit 95114c4Copy full SHA for 95114c4
plexapi/media.py
@@ -639,3 +639,21 @@ def _loadData(self, data):
639
self._data = data
640
self.name = data.attrib.get('name')
641
self.locked = cast(bool, data.attrib.get('locked'))
642
+
643
644
+@utils.registerPlexObject
645
+class SearchResult(PlexObject):
646
+ """ Represents a single SearchResult.
647
648
+ Attributes:
649
+ TAG (str): 'SearchResult'
650
+ """
651
+ TAG = 'SearchResult'
652
653
+ def _loadData(self, data):
654
+ self._data = data
655
+ self.guid = data.attrib.get('guid')
656
+ self.lifespanEnded = data.attrib.get('lifespanEnded')
657
+ self.name = data.attrib.get('name')
658
+ self.score = data.attrib.get('score')
659
+ self.year = data.attrib.get('year')
0 commit comments