fix #120 Plex问题
This commit is contained in:
parent
10315c8269
commit
93fca22c64
@ -159,7 +159,7 @@ class Plex(metaclass=Singleton):
|
|||||||
videos = self._plex.library.search(title=title, year=year, libtype="show")
|
videos = self._plex.library.search(title=title, year=year, libtype="show")
|
||||||
if not videos:
|
if not videos:
|
||||||
return {}
|
return {}
|
||||||
episodes = videos[0].episodes()
|
episodes = videos.episodes()
|
||||||
season_episodes = {}
|
season_episodes = {}
|
||||||
for episode in episodes:
|
for episode in episodes:
|
||||||
if season and episode.seasonNumber != int(season):
|
if season and episode.seasonNumber != int(season):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user