fix douban api

This commit is contained in:
jxxghp
2023-06-30 06:48:13 +08:00
parent 0c2de23735
commit f52fe549d5
3 changed files with 15 additions and 13 deletions

View File

@ -78,18 +78,18 @@ class DoubanChain(ChainBase):
return self.run_module("tv_weekly_global", page=page, count=count)
def douban_discover(self, mtype: MediaType, sort: str, tags: str,
start: int = 0, count: int = 30) -> Optional[List[dict]]:
page: int = 0, count: int = 30) -> Optional[List[dict]]:
"""
发现豆瓣电影、剧集
:param mtype: 媒体类型
:param sort: 排序方式
:param tags: 标签
:param start: 起始位置
:param page: 页码
:param count: 数量
:return: 媒体信息列表
"""
return self.run_module("douban_discover", mtype=mtype, sort=sort, tags=tags,
start=start, count=count)
page=page, count=count)
def remote_sync(self, userid: Union[int, str]):
"""