This commit is contained in:
jxxghp 2023-06-20 13:43:02 +08:00
parent 0776a0b235
commit 3cd843d70d
6 changed files with 20 additions and 20 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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