From 63b0f5b70f3692d77f7270c95ecfad64e55a7918 Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 20 Sep 2024 12:14:01 +0800 Subject: [PATCH] fix flex --- app/modules/plex/plex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: