default:"If you are getting the error <b>Found no results while trying to browse this tracker</b> then first access the site with your browser and check that you are not being forced to change your password because it has expired after 180 days."
login:
path:?p=home&pid=1
method:form
form:form#sls_form
submitpath:ajax/login.php
inputs:
action:login
loginbox_membername:"{{ .Config.username }}"
loginbox_password:"{{ .Config.password }}"
loginbox_remember:1
selectorinputs:
securitytoken:
selector:"script:contains(\"stKey: \")"
filters:
- name:regexp
args:"stKey: \"(.+?)\","
error:
- selector:div.error
- selector::contains("-ERROR-")
test:
path:?p=home&pid=1
selector:div#member_info_bar
search:
paths:
# 7 results per page, but fetching more pages when results < 7 returns duplicates from each additional page.
- path:/
inputs:
p:torrents
pid:32
$raw:"{{ range .Categories }}cid[]={{.}}&{{end}}"
keywords:"{{ .Keywords }}"
# name, description, both, uploader
search_type:name
"sortOptions[sortBy]": "{{ .Config.sort }}"
"sortOptions[sortOrder]": "{{ .Config.type }}"
# does not support imdbid search or have imdbid links in results.
error:
- selector:div.error:not(:contains("There are no results found."))
rows:
selector:"div.torrent-box[id^=\"torrent_\"]{{ if .Config.freeleech }}:has(img[src$=\"/torrent_free.png\"]){{ else }}{{ end }}"
text:"{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}"