2020-04-01 02:48:29 +00:00
---
2020-05-11 19:59:28 +00:00
id : pterclub
2020-05-10 20:05:19 +00:00
name : PTerClub
description : "PTerClub is a CHINESE Private Torrent Tracker for HD MUSIC VIDEOS, MOVIES, TV & ANIME"
2021-09-07 23:09:51 +00:00
language : zh-CN
2020-05-10 20:05:19 +00:00
type : private
encoding : UTF-8
links :
- https://pterclub.com/
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
caps :
categorymappings :
- {id: 401, cat: Movies, desc : "电影 (Movie)" }
- {id: 404, cat: TV, desc : "电视剧 (TV Play)" }
- {id: 403, cat: TV/Anime, desc : "动漫 (Anime)" }
- {id: 405, cat: TV, desc : "综艺 (TV Show)" }
- {id: 413, cat: Audio/Video, desc : "音乐短片 (MV)" }
2021-08-24 20:39:36 +00:00
- {id: 418, cat: Audio/Video, desc : "舞台演出(Stage Performance)" }
2020-05-10 20:05:19 +00:00
- {id: 406, cat: Audio, desc : "音乐 (Music)" }
- {id: 402, cat: TV/Documentary, desc : "纪录片 (Documentary)" }
- {id: 407, cat: TV/Sport, desc : "体育 (Sport)" }
- {id: 408, cat: Books, desc : "电子书 (Ebook)" }
- {id: 409, cat: Console, desc : "游戏 (Game)" }
- {id: 410, cat: PC, desc : "软件 (Software)" }
- {id: 411, cat: Other, desc : "学习 (Study)" }
- {id: 412, cat: Other, desc : "其它 (Other)" }
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
modes :
2020-10-19 03:56:16 +00:00
search : [ q]
2022-07-22 05:25:35 +00:00
tv-search : [ q, season, ep, imdbid, doubanid]
movie-search : [ q, imdbid, doubanid]
2020-05-10 20:05:19 +00:00
music-search : [ q]
2020-10-17 04:50:47 +00:00
book-search : [ q]
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
settings :
- name : username
type : text
label : Username
- name : password
type : password
label : Password
- name : 2facode
type : text
label : 2FA code
- name : info_2fa
type : info
label : "About 2FA code"
default : "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the PTerClub Web Site. Otherwise just leave it empty."
2020-09-09 07:02:34 +00:00
- name : freeleech
type : checkbox
label : Search freeleech only
default : false
2020-05-10 20:05:19 +00:00
- name : sort
type : select
label : Sort requested from site
2020-10-23 20:01:19 +00:00
default : 4
2020-05-10 20:05:19 +00:00
options :
2020-10-23 20:01:19 +00:00
4 : created
7 : seeders
5 : size
1 : title
2020-05-10 20:05:19 +00:00
- name : type
type : select
label : Order requested from site
2020-10-23 20:01:19 +00:00
default : desc
2020-05-10 20:05:19 +00:00
options :
2020-10-23 20:01:19 +00:00
desc : desc
asc : asc
2020-05-25 03:43:09 +00:00
- name : info_tpp
type : info
label : Results Per Page
default : For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
login :
path : login.php
method : form
form : form[action="takelogin.php"]
captcha :
type : image
selector : img[alt="CAPTCHA"]
input : imagestring
inputs :
username : "{{ .Config.username }}"
password : "{{ .Config.password }}"
2022-07-03 05:43:31 +00:00
2fa_secret : "{{ .Config.2facode }}"
2020-05-21 04:46:40 +00:00
logout : ""
securelogin : ""
2020-05-10 20:05:19 +00:00
ssl : yes
2020-05-21 04:46:40 +00:00
trackerssl : yes
2020-05-10 20:05:19 +00:00
error :
- selector : td.embedded:has(h2:contains("失败"))
test :
path : index.php
selector : a[data-url="logout.php"]
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
search :
paths :
- path : torrents.php
inputs :
$raw : "{{ range .Categories }}cat{{.}}=1&{{end}}"
2022-07-22 05:25:35 +00:00
search : "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if .Query.DoubanID }}{{ .Query.DoubanID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}{{ .Keywords }}{{ end }}"
2020-09-09 07:02:34 +00:00
# 0 incldead, 1 active, 2 dead
2020-05-10 20:05:19 +00:00
incldead : 0
2020-09-09 07:02:34 +00:00
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
spstate : "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
2022-07-22 05:25:35 +00:00
# 0 title, 3 uploader, 4 imdburl, 5 DoubanID
search_area : "{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.DoubanID }}5{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}0{{ end }}"
2020-09-09 07:02:34 +00:00
# 0 AND, 1 OR, 2 exact
2020-05-10 20:05:19 +00:00
search_mode : 0
sort : "{{ .Config.sort }}"
type : "{{ .Config.type }}"
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
rows :
selector : table.torrents > tbody > tr:has(table.torrentname)
2020-04-01 02:48:29 +00:00
2020-05-10 20:05:19 +00:00
fields :
category :
selector : a[href^="?cat="]
attribute : href
filters :
- name : querystring
args : cat
2021-10-23 18:12:34 +00:00
title_default :
2020-05-10 20:05:19 +00:00
selector : a[href^="details.php?id="]
2021-10-23 18:12:34 +00:00
title_optional :
2020-05-10 20:05:19 +00:00
optional : true
2022-09-08 05:33:11 +00:00
selector : a[title][href^="details.php?id="],a[title][href^="detailsgame.php?id="]
2020-05-10 20:05:19 +00:00
attribute : title
2021-10-23 18:12:34 +00:00
title :
text : "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
2020-05-10 20:05:19 +00:00
details :
selector : a[href^="details.php?id="]
attribute : href
download :
selector : a[href^="download.php?id="]
attribute : href
2020-11-07 23:43:33 +00:00
poster :
2020-05-10 20:05:19 +00:00
selector : img[data-orig]
attribute : data-orig
2021-10-23 18:12:34 +00:00
imdbid :
2022-07-03 06:36:55 +00:00
selector : a[href$="&search_area=4"]
attribute : href
doubanid :
selector : a[href$="&search_area=5"]
2020-05-10 20:05:19 +00:00
attribute : href
2021-11-06 07:14:45 +00:00
# staff have extra columns at the start and end of a row, so we have to float the next lot of selectors off an anchor
2022-07-19 07:18:10 +00:00
_anchor1 :
2021-11-14 04:56:51 +00:00
selector : td:has(a[href^="comment.php?"])
optional : true
2021-10-23 18:12:34 +00:00
date_elapsed :
2020-05-10 20:05:19 +00:00
# time type: time elapsed (default)
2022-07-19 07:18:10 +00:00
selector : "td:has(a[{{ if .Result._anchor1 }}href^=\"comment.php\"{{ else }}href$=\"startcomments\"{{ end }}]) ~ td > span[title]"
2020-05-10 20:05:19 +00:00
attribute : title
optional : true
filters :
- name : append
2020-10-10 02:16:19 +00:00
args : " +08:00" # CST
2020-05-10 20:05:19 +00:00
- name : dateparse
args : "2006-01-02 15:04:05 -07:00"
2021-10-23 18:12:34 +00:00
date_added :
2020-05-10 20:05:19 +00:00
# time added
2022-07-19 07:18:10 +00:00
selector : "td:has(a[{{ if .Result._anchor1 }}href^=\"comment.php\"{{ else }}href$=\"startcomments\"{{ end }}]) ~ td:not(:has(span[title]))"
2020-05-10 20:05:19 +00:00
optional : true
filters :
- name : append
2020-10-10 02:16:19 +00:00
args : " +08:00" # CST
2020-05-10 20:05:19 +00:00
- name : dateparse
args : "2006-01-0215:04:05 -07:00"
2021-10-23 18:12:34 +00:00
date :
text : "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
2020-05-10 20:05:19 +00:00
size :
2022-07-19 07:18:10 +00:00
selector : "td:has(a[{{ if .Result._anchor1 }}href^=\"comment.php\"{{ else }}href$=\"startcomments\"{{ end }}]) ~ td ~ td"
2020-05-10 20:05:19 +00:00
seeders :
2022-07-19 07:18:10 +00:00
selector : "td:has(a[{{ if .Result._anchor1 }}href^=\"comment.php\"{{ else }}href$=\"startcomments\"{{ end }}]) ~ td ~ td ~ td"
2020-05-10 20:05:19 +00:00
leechers :
2022-07-19 07:18:10 +00:00
selector : "td:has(a[{{ if .Result._anchor1 }}href^=\"comment.php\"{{ else }}href$=\"startcomments\"{{ end }}]) ~ td ~ td ~ td ~ td"
2020-05-10 20:05:19 +00:00
grabs :
2022-07-19 07:18:10 +00:00
selector : "td:has(a[{{ if .Result._anchor1 }}href^=\"comment.php\"{{ else }}href$=\"startcomments\"{{ end }}]) ~ td ~ td ~ td ~ td ~ td"
2020-05-10 20:05:19 +00:00
downloadvolumefactor :
case :
img.pro_free : 0
img.pro_free2up : 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_free2up : 2
img.pro_2up : 2
"*": 1
description :
2021-11-06 07:14:45 +00:00
selector : td:has(table.torrentname)
2022-09-08 05:33:11 +00:00
remove : a, b, font, img
2020-10-10 02:16:19 +00:00
minimumratio :
text : 0.9
2020-04-01 02:48:29 +00:00
# NexusPHP custom v2019.12