- sites/spiders: Haidan/HDDolby/RousiPro/SunnyPT/TNode/TorrentLeech/Yema (+mTorrent wrapper), specialized SiteAdapter, indirect download resolved at download time - sites/user-parsers: SiteParserBase + all 20 MP SiteSchema parsers (lxml XPath via xpath+xmldom), refreshSiteUserData with schema fallback - sites/definitions: zod SiteDefinition schemas, 23 MovieClaw v0.27.0 (MIT) definitions via scripts/mp-sync/movieclaw-import.mjs, registry getSiteDefinition/listSiteDefinitions, NOTICE - scripts/mp-sync: ledger.json (upstream sha256), check.mjs, build-ledger.mjs; docs/porting/mp-sync-ledger.md - license-and-provenance: add copied-mit kind, re-anchor MovieClaw rows to v0.27.0 Co-Authored-By: Claude Opus 5.5 <[email protected]>
216 lines
5.6 KiB
JSON
216 lines
5.6 KiB
JSON
{
|
|
"id": "nicept",
|
|
"name": "NicePT",
|
|
"enabled": false,
|
|
"schema": "NexusPhp",
|
|
"provenance": {
|
|
"source": "movieclaw",
|
|
"ref": "v0.27.0",
|
|
"commit": "c79bb1b0",
|
|
"license": "MIT",
|
|
"file": "src/movieclaw_tracker/sites/configs/nicept.yaml"
|
|
},
|
|
"domain": "https://www.nicept.net/",
|
|
"encoding": "UTF-8",
|
|
"public": false,
|
|
"proxy": false,
|
|
"language": "zh",
|
|
"result_num": 100,
|
|
"timeout": 30,
|
|
"search": {
|
|
"paths": [
|
|
{
|
|
"path": "torrents.php",
|
|
"type": "all"
|
|
}
|
|
],
|
|
"params": {
|
|
"search": "{keyword}"
|
|
}
|
|
},
|
|
"batch": {
|
|
"delimiter": " ",
|
|
"space_replace": "_"
|
|
},
|
|
"browse": {
|
|
"path": "torrents.php?page={page}",
|
|
"start": 0
|
|
},
|
|
"category": {
|
|
"movie": [],
|
|
"tv": [],
|
|
"music": []
|
|
},
|
|
"torrents": {
|
|
"list": {
|
|
"selector": "table.torrents > tr, table.torrents > tbody > tr"
|
|
},
|
|
"fields": {
|
|
"title_default": {
|
|
"selector": "table.torrentname a b"
|
|
},
|
|
"title_optional": {
|
|
"selector": "table.torrentname a b[title]",
|
|
"attribute": "title"
|
|
},
|
|
"title": {
|
|
"text": "{% if fields['title_optional'] %}{{ fields['title_optional'] }}{% else %}{{ fields['title_default'] }}{% endif %}"
|
|
},
|
|
"details": {
|
|
"selector": "a[href*='details.php']",
|
|
"attribute": "href"
|
|
},
|
|
"download": {
|
|
"selector": "a[href*='download.php']",
|
|
"attribute": "href"
|
|
},
|
|
"imdbid": {
|
|
"selector": "a[href*=\"imdb.com/title/tt\"]",
|
|
"attribute": "href",
|
|
"filters": [
|
|
{
|
|
"name": "re_search",
|
|
"args": ["tt\\d+", 0]
|
|
}
|
|
]
|
|
},
|
|
"date_elapsed": {
|
|
"selector": "td:nth-child(4)"
|
|
},
|
|
"date_added": {
|
|
"selector": "td:nth-child(4) > span",
|
|
"attribute": "title"
|
|
},
|
|
"date": {
|
|
"text": "{% if fields['date_elapsed'] or fields['date_added'] %}{{ fields['date_added'] if fields['date_added'] else fields['date_elapsed'] }}{% else %}now{% endif %}",
|
|
"filters": [
|
|
{
|
|
"name": "dateparse",
|
|
"args": "%Y-%m-%d %H:%M:%S"
|
|
}
|
|
]
|
|
},
|
|
"size": {
|
|
"selector": "td:nth-child(5)"
|
|
},
|
|
"seeders": {
|
|
"selector": "td:nth-child(6)"
|
|
},
|
|
"leechers": {
|
|
"selector": "td:nth-child(7)"
|
|
},
|
|
"grabs": {
|
|
"selector": "td:nth-child(8)"
|
|
},
|
|
"downloadvolumefactor": {
|
|
"case": {
|
|
"img.pro_free": 0,
|
|
"img.pro_50pctdown": 0.5,
|
|
"img.pro_50pctdown2up": 0.5,
|
|
"img.pro_30pctdown": 0.3,
|
|
"*": 1
|
|
}
|
|
},
|
|
"uploadvolumefactor": {
|
|
"case": {
|
|
"img.pro_50pctdown2up": 2,
|
|
"img.pro_2up": 2,
|
|
"*": 1
|
|
}
|
|
},
|
|
"description": {
|
|
"selector": "td.embedded br"
|
|
},
|
|
"category": {
|
|
"selector": "td:nth-child(1) a[href*='cat=']",
|
|
"attribute": "href",
|
|
"filters": [
|
|
{
|
|
"name": "re_search",
|
|
"args": ["\\d+", 0]
|
|
}
|
|
]
|
|
},
|
|
"hr": {
|
|
"selector": "img.hitandrun"
|
|
}
|
|
}
|
|
},
|
|
"umt": {
|
|
"version": "[email protected]",
|
|
"kind": "nexusphp",
|
|
"displayName": "NicePT",
|
|
"timezone": "+08:00",
|
|
"rateLimit": {
|
|
"minIntervalMs": 5000,
|
|
"burst": 1
|
|
},
|
|
"capabilities": {
|
|
"list": true,
|
|
"search": true,
|
|
"detail": true,
|
|
"download": true,
|
|
"rss": false
|
|
},
|
|
"categoryNames": {
|
|
"401": "成人",
|
|
"402": "成人",
|
|
"403": "成人",
|
|
"404": "成人",
|
|
"500": "成人",
|
|
"501": "成人",
|
|
"503": "成人",
|
|
"504": "成人"
|
|
},
|
|
"loginSuccess": "a[href*='logout']",
|
|
"emptyMarkers": ["没有种子", "没有结果", "Nothing found"],
|
|
"pagination": "a[href*=\"page=\"]",
|
|
"detailPath": "details.php",
|
|
"downloadPath": "download.php",
|
|
"authSupported": ["cookie", "credential"],
|
|
"login": {
|
|
"path": "login.php",
|
|
"usernameField": "username",
|
|
"passwordField": "password",
|
|
"errorCss": "td.text"
|
|
},
|
|
"profile": {
|
|
"path": "userdetails.php",
|
|
"uid_css": "a[class*='_Name']::attr(href)",
|
|
"username_css": "a[class*='_Name'] b",
|
|
"class_css": "a[class*='_Name']::attr(class)",
|
|
"uploaded_css": "font.color_uploaded::next_sibling_text",
|
|
"downloaded_css": "font.color_downloaded::next_sibling_text",
|
|
"ratio_css": "font.color_ratio::next_sibling_text",
|
|
"bonus_css": "font.color_bonus",
|
|
"join_date_css": "td.rowhead:contains('加入日期') + td::text",
|
|
"seeding_css": "img.arrowup::next_sibling_text",
|
|
"leeching_css": "img.arrowdown::next_sibling_text"
|
|
},
|
|
"detail": {
|
|
"path": "details.php",
|
|
"title": "h1#top",
|
|
"rowLabel": "td.rowhead",
|
|
"rowValue": "td.rowfollow",
|
|
"labels": {
|
|
"subtitle": ["副标题", "Small Description"],
|
|
"basicInfo": ["基本信息", "Basic Info"],
|
|
"peers": ["同伴", "Peers"]
|
|
},
|
|
"description": "#kdescr",
|
|
"headerScope": "h1#top",
|
|
"notFoundMarkers": ["没有该ID的种子", "No torrent with ID"],
|
|
"fields": {
|
|
"title": "h1#top",
|
|
"subtitle": "td.rowhead:contains('副標題') + td::text",
|
|
"size": "td.rowhead:contains('基本資訊') + td.rowfollow > b::next_sibling_text",
|
|
"description": "#kdescr",
|
|
"download": "a[href*='download.php']::attr(href)",
|
|
"imdb": "a[href*='imdb.com']::attr(href)",
|
|
"douban": "a[href*='douban.com']::attr(href)",
|
|
"fileList": "td.rowfollow > ul > li::text"
|
|
}
|
|
}
|
|
}
|
|
}
|