mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-21 07:26:51 +00:00
fix ade site statis
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
"author": "lightolly",
|
||||
"level": 2,
|
||||
"history": {
|
||||
"v3.7": "修复观众做种数据统计",
|
||||
"v3.6": "支持站点数据统计刷新后触发插件事件",
|
||||
"v3.5": "站点数据统计支持YemaPT",
|
||||
"v3.4": "修复馒头站点数据统计",
|
||||
|
||||
@@ -43,7 +43,7 @@ class SiteStatistic(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "statistic.png"
|
||||
# 插件版本
|
||||
plugin_version = "3.6"
|
||||
plugin_version = "3.7"
|
||||
# 插件作者
|
||||
plugin_author = "lightolly"
|
||||
# 作者主页
|
||||
|
||||
@@ -13,6 +13,10 @@ class NexusAudiencesSiteUserInfo(NexusPhpSiteUserInfo):
|
||||
def match(cls, html_text: str) -> bool:
|
||||
return 'audiences.me' in html_text
|
||||
|
||||
def _parse_site_page(self, html_text: str):
|
||||
super()._parse_site_page(html_text)
|
||||
self._torrent_seeding_page = f"usertorrentlist.php?userid={self.userid}&type=seeding"
|
||||
|
||||
def _parse_seeding_pages(self):
|
||||
self._torrent_seeding_headers = {"Referer": urljoin(self._base_url, self._user_detail_page)}
|
||||
super()._parse_seeding_pages()
|
||||
|
||||
Reference in New Issue
Block a user