- {id: 4, cat: Other, desc:"Arquivos de Auxilio (Help Files)"}
modes:
search:[q]
tv-search:[q]
book-search:[q]
settings:
- name:username
type:text
label:Username
- name:password
type:password
label:Password
- name:freeleech
type:checkbox
label:Search freeleech only
default:false
- name:sort
type:select
label:Sort requested from site
default:created_at
options:
created_at:created
seeders:seeders
size:size
name:title
- name:type
type:select
label:Order requested from site
default:desc
options:
desc:desc
asc:asc
login:
path:login
method:form
form:form[action$="/login"]
inputs:
username:"{{ .Config.username }}"
password:"{{ .Config.password }}"
remember:on
selectorinputs:
_token:
selector:input[name="_token"]
attribute:value
error:
- selector:div#ERROR_COPY
# test:
# path: /
# selector: a[href$="/logout"]
search:
paths:
- path:torrents
inputs:
$raw:"{{ range .Categories }}categories[]={{.}}&{{end}}"
name:"{{ .Keywords }}"
description:""
mediainfo:""
keywords:""
uploader:""
sortField:"{{ .Config.sort }}"
sortDirection:"{{ .Config.type }}"
perPage:100
page:1
free:"{{ if .Config.freeleech }}1{{ else }}{{ end }}"
rows:
selector:table > tbody > tr
fields:
category:
selector:a[href*="/categories/"]
attribute:href
filters:
- name:regexp
args:"/categories/(\\d+)"
title:
selector:a.view-torrent
download:
selector:a[href*="/download_check/"]
attribute:href
filters:
- name:replace
args:["download_check","download"]
magnet:
selector:a[href^="magnet:?"]
attribute:href
details:
selector:a.view-torrent
attribute:href
poster:
selector:div.torrent-poster img
attribute:src
filters:
- name:replace
args:["https://via.placeholder.com/90x135",""]
size:
selector:td:nth-last-child(5)
seeders:
selector:td:nth-last-child(4)
leechers:
selector:td:nth-last-child(3)
grabs:
selector:td:nth-last-child(2)
date:
selector:td:nth-last-child(1)
filters:
# translations for Turkish|Estonian|Danish|Italian|Polish|Norwegian|Portuguese|Czech|Russian|Romanian|Spanish|French|German|Bulgarian|Dutch|Chinese|Japanese|Swedish
- name:re_replace
args:["(?i)(önce|tagasi|geleden|fa|temu|siden|há|atrás|nazpět|назад|acum|în urmă|hace|il y a|vor|преди|前|sedan)"," ago"]