Skip to content

Commit dea8493

Browse files
committed
cast SearchResult score attribute to an int
1 parent 3f9dbd6 commit dea8493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def _loadData(self, data):
655655
self.guid = data.attrib.get('guid')
656656
self.lifespanEnded = data.attrib.get('lifespanEnded')
657657
self.name = data.attrib.get('name')
658-
self.score = data.attrib.get('score')
658+
self.score = cast(int, data.attrib.get('score'))
659659
self.year = data.attrib.get('year')
660660

661661

0 commit comments

Comments
 (0)