fix
This commit is contained in:
parent
0776a0b235
commit
3cd843d70d
@ -89,7 +89,7 @@ class DoubanChain(ChainBase):
|
||||
:return: 媒体信息列表
|
||||
"""
|
||||
return self.run_module("douban_discover", mtype=mtype, sort=sort, tags=tags,
|
||||
start=start, count=count)
|
||||
start=start, count=count)
|
||||
|
||||
def remote_sync(self, userid: Union[int, str]):
|
||||
"""
|
||||
|
@ -20,9 +20,9 @@ class TmdbChain(ChainBase):
|
||||
:return: 媒体信息列表
|
||||
"""
|
||||
return self.run_module("tmdb_discover", mtype=mtype,
|
||||
sort_by=sort_by, with_genres=with_genres,
|
||||
with_original_language=with_original_language,
|
||||
page=page)
|
||||
sort_by=sort_by, with_genres=with_genres,
|
||||
with_original_language=with_original_language,
|
||||
page=page)
|
||||
|
||||
def tmdb_trending(self, page: int = 1) -> List[dict]:
|
||||
"""
|
||||
|
@ -100,9 +100,9 @@ class Emby(metaclass=Singleton):
|
||||
try:
|
||||
res = RequestUtils(headers={
|
||||
'X-Emby-Authorization': f'MediaBrowser Client="MoviePilot", '
|
||||
f'Device="Axios", '
|
||||
f'Device="requests", '
|
||||
f'DeviceId="1", '
|
||||
f'Version="10.8.0", '
|
||||
f'Version="1.0.0", '
|
||||
f'Token="{self._apikey}"',
|
||||
'Content-Type': 'application/json',
|
||||
"Accept": "application/json"
|
||||
|
@ -97,9 +97,9 @@ class Jellyfin(metaclass=Singleton):
|
||||
try:
|
||||
res = RequestUtils(headers={
|
||||
'X-Emby-Authorization': f'MediaBrowser Client="MoviePilot", '
|
||||
f'Device="Axios", '
|
||||
f'Device="requests", '
|
||||
f'DeviceId="1", '
|
||||
f'Version="10.8.0", '
|
||||
f'Version="1.0.0", '
|
||||
f'Token="{self._apikey}"',
|
||||
'Content-Type': 'application/json',
|
||||
"Accept": "application/json"
|
||||
|
@ -37,19 +37,19 @@ class SiteStatistic(_PluginBase):
|
||||
# 插件描述
|
||||
plugin_desc = "统计和展示站点数据。"
|
||||
# 插件图标
|
||||
module_icon = ""
|
||||
plugin_icon = ""
|
||||
# 主题色
|
||||
module_color = ""
|
||||
plugin_color = ""
|
||||
# 插件版本
|
||||
module_version = "1.0"
|
||||
plugin_version = "1.0"
|
||||
# 插件作者
|
||||
module_author = "lightolly"
|
||||
plugin_author = "lightolly"
|
||||
# 作者主页
|
||||
author_url = "https://github.com/lightolly"
|
||||
# 插件配置项ID前缀
|
||||
module_config_prefix = "sitestatistic_"
|
||||
plugin_config_prefix = "sitestatistic_"
|
||||
# 加载顺序
|
||||
module_order = 1
|
||||
plugin_order = 1
|
||||
# 可使用的用户级别
|
||||
auth_level = 2
|
||||
|
||||
|
@ -11,18 +11,18 @@ class Plugin(BaseModel):
|
||||
# 插件描述
|
||||
plugin_desc: str = None
|
||||
# 插件图标
|
||||
module_icon: str = None
|
||||
plugin_icon: str = None
|
||||
# 主题色
|
||||
module_color: str = None
|
||||
plugin_color: str = None
|
||||
# 插件版本
|
||||
module_version: str = None
|
||||
plugin_version: str = None
|
||||
# 插件作者
|
||||
module_author: str = None
|
||||
plugin_author: str = None
|
||||
# 作者主页
|
||||
author_url: str = None
|
||||
# 插件配置项ID前缀
|
||||
module_config_prefix: str = None
|
||||
plugin_config_prefix: str = None
|
||||
# 加载顺序
|
||||
module_order: int = 0
|
||||
plugin_order: int = 0
|
||||
# 可使用的用户级别
|
||||
auth_level: int = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user