Cast plexapi.media.Poster selected to bool

This commit is contained in:
JonnyWong16 2020-10-08 10:09:08 -07:00
parent 7f3d8cfb8d
commit 22b162b3c4
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -731,7 +731,7 @@ class Poster(PlexObject):
self._data = data
self.key = data.attrib.get('key')
self.ratingKey = data.attrib.get('ratingKey')
self.selected = data.attrib.get('selected')
self.selected = cast(bool, data.attrib.get('selected'))
self.thumb = data.attrib.get('thumb')
def select(self):