Use library method for season number (#28708)

This commit is contained in:
jjlawren 2019-11-12 10:05:30 -06:00 committed by GitHub
parent 48fd95c7db
commit 5f177fa42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,12 +289,7 @@ class PlexMediaPlayer(MediaPlayerDevice):
self._media_content_type = MEDIA_TYPE_TVSHOW
# season number (00)
if callable(self.session.season):
self._media_season = str((self.session.season()).index).zfill(2)
elif self.session.parentIndex is not None:
self._media_season = self.session.parentIndex.zfill(2)
else:
self._media_season = None
self._media_season = self.session.seasonNumber
# show name
self._media_series_title = self.session.grandparentTitle
# episode number (00)