mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 23:16:47 +00:00
fix m-team statistic
This commit is contained in:
@@ -43,7 +43,7 @@ class SiteStatistic(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "statistic.png"
|
||||
# 插件版本
|
||||
plugin_version = "2.5"
|
||||
plugin_version = "2.6"
|
||||
# 插件作者
|
||||
plugin_author = "lightolly"
|
||||
# 作者主页
|
||||
|
||||
@@ -290,8 +290,8 @@ class ISiteUserInfo(metaclass=ABCMeta):
|
||||
req_headers.update({
|
||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
})
|
||||
if self._addition_headers:
|
||||
req_headers.update(self._addition_headers)
|
||||
if self._addition_headers:
|
||||
req_headers.update(self._addition_headers)
|
||||
|
||||
if self.request_mode == "apikey":
|
||||
# 使用apikey请求,通过请求头传递
|
||||
|
||||
@@ -68,7 +68,9 @@ class MTorrentSiteUserInfo(ISiteUserInfo):
|
||||
domain = StringUtils.get_url_host(self.site_url)
|
||||
self._torrent_seeding_headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "application/json, text/plain, */*",
|
||||
"Accept": "application/json, text/plain, */*"
|
||||
}
|
||||
self._addition_headers = {
|
||||
"x-api-key": SystemConfigOper().get(f"site.{domain}.apikey"),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user