This commit is contained in:
Owen
2024-09-20 12:14:01 +08:00
parent 623580a7ae
commit 63b0f5b70f
+2 -2
View File
@@ -238,7 +238,7 @@ class Plex:
if not self._plex: if not self._plex:
return None, {} return None, {}
if item_id: if item_id:
videos = self._plex.fetchItem(item_id) videos = self._plex.fetchItem(int(item_id))
else: else:
# 兼容年份为空的场景 # 兼容年份为空的场景
kwargs = {"year": year} if year else {} kwargs = {"year": year} if year else {}
@@ -392,7 +392,7 @@ class Plex:
if not self._plex: if not self._plex:
return None return None
try: try:
item = self._plex.fetchItem(itemid) item = self._plex.fetchItem(int(itemid))
ids = self.__get_ids(item.guids) ids = self.__get_ids(item.guids)
path = None path = None
if item.locations: if item.locations: