default:"Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the Kufei Web Site. Otherwise just leave it empty."
- name:freeleech
type:checkbox
label:Search freeleech only
default:false
- name:sort
type:select
label:Sort requested from site
default:4
options:
4:created
7:seeders
5:size
1:title
- name:type
type:select
label:Order requested from site
default:desc
options:
desc:desc
asc:asc
- 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.
login:
path:login.php
method:form
form:form[action="takelogin.php"]
captcha:
type:image
selector:img[alt="CAPTCHA"]
input:imagestring
inputs:
secret:""
username:"{{ .Config.username }}"
password:"{{ .Config.password }}"
two_step_code:"{{ .Config.2facode }}"
logout:""
securelogin:""
ssl:yes
trackerssl:yes
error:
- selector:td.embedded:has(h2:contains("失败"))
test:
path:index.php
selector:a[href="logout.php"]
search:
paths:
- path:torrents.php
inputs:
$raw:"{{ range .Categories }}cat{{.}}=1&{{end}}"
search:"{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }} {{ else }}{{ .Keywords }}{{ end }}{{ if .Query.DoubanID }}{{ .Query.DoubanID }}{{ else }}{{ end }}"
spstate:"{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 title, 1 descr, 3 uploader, 4 imdburl
search_area:"{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.DoubanID }}1{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}0{{ end }}"