mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-16 23:16:48 +00:00
修复观众无法统计做总数和做种体积的bug
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
"author": "lightolly",
|
||||
"level": 2,
|
||||
"history": {
|
||||
"v3.1": "修复观众无法统计做总数和做种体积的bug",
|
||||
"v3.0": "适配馒头数据统计,需要升级至v1.8.5+版本,且在站点信息中维护好API Key",
|
||||
"v2.9": "增强API安全性",
|
||||
"v2.8": "修复馒头未读消息统计",
|
||||
|
||||
@@ -26,6 +26,7 @@ class SiteSchema(Enum):
|
||||
NexusProject = "NexusProject"
|
||||
NexusRabbit = "NexusRabbit"
|
||||
NexusHhanclub = "NexusHhanclub"
|
||||
NexusAudiences = "NexusAudiences"
|
||||
SmallHorse = "Small Horse"
|
||||
Unit3d = "Unit3d"
|
||||
TorrentLeech = "TorrentLeech"
|
||||
|
||||
18
plugins/sitestatistic/siteuserinfo/nexus_audiences.py
Normal file
18
plugins/sitestatistic/siteuserinfo/nexus_audiences.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from urllib.parse import urljoin
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import SITE_BASE_ORDER, SiteSchema
|
||||
from app.plugins.sitestatistic.siteuserinfo.nexus_php import NexusPhpSiteUserInfo
|
||||
|
||||
|
||||
class NexusAudiencesSiteUserInfo(NexusPhpSiteUserInfo):
|
||||
schema = SiteSchema.NexusAudiences
|
||||
order = SITE_BASE_ORDER + 5
|
||||
|
||||
@classmethod
|
||||
def match(cls, html_text: str) -> bool:
|
||||
return 'audiences.me' in html_text
|
||||
|
||||
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