1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02:00

Update plex.py (#13659)

fixed IndexError on line 131
This commit is contained in:
Kevin Raddatz 2018-04-03 18:28:42 +02:00 committed by Fabian Affolter
parent 89f5a938c7
commit bfb49c2e58

View File

@ -128,7 +128,7 @@ class PlexSensor(Entity):
season_title += " ({0})".format(sess.show().year)
season_episode = "S{0}".format(sess.parentIndex)
if sess.index is not None:
season_episode += " · E{1}".format(sess.index)
season_episode += " · E{0}".format(sess.index)
episode_title = sess.title
now_playing_title = "{0} - {1} - {2}".format(season_title,
season_episode,