This commit is contained in:
jxxghp 2023-08-14 18:04:34 +08:00
parent 6e182df3ff
commit 205e185caf

View File

@ -154,7 +154,7 @@ class Plex(metaclass=Singleton):
if not self._plex: if not self._plex:
return {} return {}
if item_id: if item_id:
videos = self._plex.library.sectionByID(item_id).all() videos = self._plex.fetchItem(item_id)
else: else:
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: