同步更新上游api
This commit is contained in:
@ -616,9 +616,8 @@ class Plex:
|
|||||||
return []
|
return []
|
||||||
# 媒体库白名单
|
# 媒体库白名单
|
||||||
allow_library = ",".join([lib.id for lib in self.get_librarys()])
|
allow_library = ",".join([lib.id for lib in self.get_librarys()])
|
||||||
query = {'contentDirectoryID': allow_library}
|
params = {'contentDirectoryID': allow_library}
|
||||||
path = '/hubs/continueWatching/items' + utils.joinArgs(query)
|
items = self._plex.fetchItems("/hubs/continueWatching/items", container_start=0, container_size=num, params=params)
|
||||||
items = self._plex.fetchItems(path, container_start=0, container_size=num)
|
|
||||||
ret_resume = []
|
ret_resume = []
|
||||||
for item in items:
|
for item in items:
|
||||||
item_type = MediaType.MOVIE.value if item.TYPE == "movie" else MediaType.TV.value
|
item_type = MediaType.MOVIE.value if item.TYPE == "movie" else MediaType.TV.value
|
||||||
|
@ -24,7 +24,7 @@ cryptography~=41.0.1
|
|||||||
pytz~=2023.3
|
pytz~=2023.3
|
||||||
pycryptodome~=3.18.0
|
pycryptodome~=3.18.0
|
||||||
qbittorrent-api==2023.5.48
|
qbittorrent-api==2023.5.48
|
||||||
plexapi~=4.14.0
|
plexapi~=4.15.12
|
||||||
transmission-rpc~=4.3.0
|
transmission-rpc~=4.3.0
|
||||||
Jinja2~=3.1.2
|
Jinja2~=3.1.2
|
||||||
pyparsing~=3.0.9
|
pyparsing~=3.0.9
|
||||||
|
Reference in New Issue
Block a user