From d21267090afb4820adede4757a830ccdbfbea9a1 Mon Sep 17 00:00:00 2001 From: zhu0823 Date: Tue, 30 Apr 2024 19:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0=E4=B8=8A?= =?UTF-8?q?=E6=B8=B8api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/plex/plex.py | 5 ++--- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index 45e3760c..eab1eb03 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -616,9 +616,8 @@ class Plex: return [] # 媒体库白名单 allow_library = ",".join([lib.id for lib in self.get_librarys()]) - query = {'contentDirectoryID': allow_library} - path = '/hubs/continueWatching/items' + utils.joinArgs(query) - items = self._plex.fetchItems(path, container_start=0, container_size=num) + params = {'contentDirectoryID': allow_library} + items = self._plex.fetchItems("/hubs/continueWatching/items", container_start=0, container_size=num, params=params) ret_resume = [] for item in items: item_type = MediaType.MOVIE.value if item.TYPE == "movie" else MediaType.TV.value diff --git a/requirements.txt b/requirements.txt index c9fdb01e..c7079ea7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,7 +24,7 @@ cryptography~=41.0.1 pytz~=2023.3 pycryptodome~=3.18.0 qbittorrent-api==2023.5.48 -plexapi~=4.14.0 +plexapi~=4.15.12 transmission-rpc~=4.3.0 Jinja2~=3.1.2 pyparsing~=3.0.9