mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-20 07:26:53 +00:00
19 lines
630 B
Python
19 lines
630 B
Python
# -*- 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()
|