mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix flex
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user