diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index 23a6aa9f..15907b9b 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -238,7 +238,7 @@ class Plex: if not self._plex: return None, {} if item_id: - videos = self._plex.fetchItem(item_id) + videos = self._plex.fetchItem(int(item_id)) else: # 兼容年份为空的场景 kwargs = {"year": year} if year else {} @@ -392,7 +392,7 @@ class Plex: if not self._plex: return None try: - item = self._plex.fetchItem(itemid) + item = self._plex.fetchItem(int(itemid)) ids = self.__get_ids(item.guids) path = None if item.locations: