fix ade site statis

This commit is contained in:
olly
2024-06-10 13:48:35 +08:00
parent 40ad44b638
commit 5dd961dea0
3 changed files with 6 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
"author": "lightolly",
"level": 2,
"history": {
"v3.7": "修复观众做种数据统计",
"v3.6": "支持站点数据统计刷新后触发插件事件",
"v3.5": "站点数据统计支持YemaPT",
"v3.4": "修复馒头站点数据统计",

View File

@@ -43,7 +43,7 @@ class SiteStatistic(_PluginBase):
# 插件图标
plugin_icon = "statistic.png"
# 插件版本
plugin_version = "3.6"
plugin_version = "3.7"
# 插件作者
plugin_author = "lightolly"
# 作者主页

View File

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