Title recognition (parseRelease / parseReleasePath):
- anime prefix tags (★N月新番, [国漫], 【22年日剧】), category lead bracket, `A / B` cn aliases
- `Name [01]`, `[TV 04]`, `#13`, `名称 12.mkv`, `S01 13-14`, `E13-14` episodes
- lead bracket as title vs group, trailing [Group], YTS.MX/Hall_of_C style groups, 字幕组 suffix
- `[dot.release.name][…]` unbracketing, `Season 2017` as year, leading date not airDate,
date-only parent dir does not merge as TV
- original disc: Blu-ray + AVC/HEVC/VC-1/MPEG-2 without x26x/H.26x -> BluRay-Disc
- `{[tmdbid=;type=;s=;e=]}` explicit block, bangumi/anilist ids
- bare [1080]/[5.1], DTS-HD MA5.1, £ multi-group, 合集, pinyin title -> cn from subtitle,
streaming platform table, CHS/CHT/GB/BIG5 in subtitle
zh-map: add 迴滾魷瑯臥駭; document one-to-many chars kept out.
Sites: tbody branch + header-row tightening via movieclaw-import rowSelector (18 definitions),
row-level case/hr/labels include the row itself, subtitle branch (searchType: "subtitles"),
parseSizeMp banker's rounding.
Differential snapshots regenerated; MP test sample sources registered in ledger.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
241 lines
6.3 KiB
JSON
241 lines
6.3 KiB
JSON
{
|
|
"id": "pttime",
|
|
"name": "PTTime",
|
|
"enabled": false,
|
|
"schema": "NexusPhp",
|
|
"provenance": {
|
|
"source": "movieclaw",
|
|
"ref": "v0.27.0",
|
|
"commit": "c79bb1b0",
|
|
"license": "MIT",
|
|
"file": "src/movieclaw_tracker/sites/configs/pttime.yaml"
|
|
},
|
|
"domain": "https://www.pttime.org/",
|
|
"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": [
|
|
{
|
|
"id": "401",
|
|
"desc": "电影"
|
|
}
|
|
],
|
|
"tv": [
|
|
{
|
|
"id": "402",
|
|
"desc": "剧集"
|
|
},
|
|
{
|
|
"id": "403",
|
|
"desc": "剧集"
|
|
}
|
|
],
|
|
"music": [
|
|
{
|
|
"id": "408",
|
|
"desc": "音乐"
|
|
}
|
|
]
|
|
},
|
|
"torrents": {
|
|
"list": {
|
|
"selector": "table.torrents > tr:has(td.rowfollow), table.torrents > tbody > tr:has(td.rowfollow)"
|
|
},
|
|
"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(5)"
|
|
},
|
|
"date_added": {
|
|
"selector": "td:nth-child(5) > 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(6)"
|
|
},
|
|
"seeders": {
|
|
"selector": "td:nth-child(7)"
|
|
},
|
|
"leechers": {
|
|
"selector": "td:nth-child(8)"
|
|
},
|
|
"grabs": {
|
|
"selector": "td:nth-child(9)"
|
|
},
|
|
"downloadvolumefactor": {
|
|
"case": {
|
|
"font.promotion.free": 0,
|
|
"font.promotion.twoupfree": 0,
|
|
"font.promotion.halfdown": 0.5,
|
|
"*": 1
|
|
}
|
|
},
|
|
"uploadvolumefactor": {
|
|
"case": {
|
|
"font.promotion.twoupfree": 2,
|
|
"font.promotion.twoup": 2,
|
|
"*": 1
|
|
}
|
|
},
|
|
"description": {
|
|
"selector": "td.embedded font[title]",
|
|
"attribute": "title"
|
|
},
|
|
"category": {
|
|
"selector": "td:nth-child(1) a[href*='cat=']",
|
|
"attribute": "href",
|
|
"filters": [
|
|
{
|
|
"name": "re_search",
|
|
"args": ["\\d+", 0]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"umt": {
|
|
"version": "[email protected]",
|
|
"kind": "nexusphp",
|
|
"displayName": "PTTime",
|
|
"timezone": "+08:00",
|
|
"rateLimit": {
|
|
"minIntervalMs": 5000,
|
|
"burst": 1
|
|
},
|
|
"capabilities": {
|
|
"list": true,
|
|
"search": true,
|
|
"detail": true,
|
|
"download": true,
|
|
"rss": false
|
|
},
|
|
"categoryNames": {
|
|
"100": "其他",
|
|
"401": "电影",
|
|
"402": "剧集",
|
|
"403": "剧集",
|
|
"404": "纪录片",
|
|
"405": "其他",
|
|
"406": "动漫",
|
|
"407": "其他",
|
|
"408": "音乐",
|
|
"409": "其他",
|
|
"411": "其他",
|
|
"412": "其他",
|
|
"420": "其他",
|
|
"421": "游戏",
|
|
"422": "其他",
|
|
"423": "其他",
|
|
"430": "其他"
|
|
},
|
|
"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": "#info_block span.medium a[href*='userdetails.php']::attr(href)",
|
|
"username_css": "#info_block span.medium a[href*='userdetails.php'] b",
|
|
"class_css": "td.rowhead:contains('用户等级') + td b::text",
|
|
"uploaded_css": "#info_block font:contains('上传:')::next_sibling_text",
|
|
"downloaded_css": "#info_block font:contains('下载:')::next_sibling_text",
|
|
"ratio_css": "#info_block font:contains('分享率:')::next_sibling_text",
|
|
"bonus_css": "#info_block a[href='mybonus.php']::next_sibling_text",
|
|
"join_date_css": "td.rowhead:contains('加入日期') + td::text",
|
|
"seeding_css": "#info_block font[title='当前做种']::next_sibling_text",
|
|
"leeching_css": "#info_block font[title='当前下载']::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"
|
|
}
|
|
}
|
|
}
|
|
}
|