mirror of
https://github.com/Jackett/Jackett
synced 2025-02-26 16:12:55 +00:00
torrentz2: update categories
add config sort options
This commit is contained in:
parent
c68d0f27b8
commit
af32e419ae
1 changed files with 26 additions and 14 deletions
|
@ -29,6 +29,7 @@
|
||||||
"game": PC/Games
|
"game": PC/Games
|
||||||
"game pc": PC/Games
|
"game pc": PC/Games
|
||||||
"game xbox": Console/Xbox
|
"game xbox": Console/Xbox
|
||||||
|
"game nintendo": Console/NDS
|
||||||
"adult": XXX
|
"adult": XXX
|
||||||
"adult amateur": XXX
|
"adult amateur": XXX
|
||||||
"adult anal": XXX
|
"adult anal": XXX
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
"adult double p": XXX
|
"adult double p": XXX
|
||||||
"adult fisting": XXX
|
"adult fisting": XXX
|
||||||
"adult hairy": XXX
|
"adult hairy": XXX
|
||||||
|
"adult hentai": XXX
|
||||||
"adult lesbian": XXX
|
"adult lesbian": XXX
|
||||||
"adult milf": XXX
|
"adult milf": XXX
|
||||||
"adult squirting": XXX
|
"adult squirting": XXX
|
||||||
|
@ -64,17 +66,35 @@
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: "Only include verifed content in results"
|
label: "Only include verifed content in results"
|
||||||
default: false
|
default: false
|
||||||
|
- name: sort
|
||||||
|
type: select
|
||||||
|
label: Sort requested from site
|
||||||
|
default: "A"
|
||||||
|
options:
|
||||||
|
"A": "created"
|
||||||
|
"P": "seeders"
|
||||||
|
"S": "size"
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
- path: "{{if .Config.filter-verified }}verified{{else}}searchA{{end}}"
|
- path: "{{if .Config.filter-verified }}verified{{else}}search{{end}}{{ .Config.sort }}"
|
||||||
inputs:
|
inputs:
|
||||||
f: "{{if .Keywords }}title: {{else}}{{end}}{{ .Keywords }}"
|
f: "{{ if .Keywords }}title: {{ .Keywords }}{{else}}{{end}}"
|
||||||
safe: "{{if .Config.filter-safe }}1{{else}}0{{end}}"
|
safe: "{{ if .Config.filter-safe }}1{{else}}0{{end}}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: "html body #wrap .results dl:has(a)"
|
selector: "html body #wrap .results dl:has(a)"
|
||||||
# andmatch filter removed, see #3737
|
# andmatch filter removed, see #3737
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
category:
|
||||||
|
optional: true
|
||||||
|
selector: dt
|
||||||
|
remove: a
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["[^a-zA-Z\\s]+", ""]
|
||||||
|
- name: trim
|
||||||
title:
|
title:
|
||||||
selector: dt a
|
selector: dt a
|
||||||
details:
|
details:
|
||||||
|
@ -108,14 +128,6 @@
|
||||||
args: "magnet:?xt=urn:btih:"
|
args: "magnet:?xt=urn:btih:"
|
||||||
- name: append
|
- name: append
|
||||||
args: "&dn={{ .Result.magfile }}.torrent&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337"
|
args: "&dn={{ .Result.magfile }}.torrent&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337"
|
||||||
category:
|
|
||||||
optional: true
|
|
||||||
selector: dt
|
|
||||||
remove: a
|
|
||||||
filters:
|
|
||||||
- name: re_replace
|
|
||||||
args: ["[^a-zA-Z\\s]+", ""]
|
|
||||||
- name: trim
|
|
||||||
date:
|
date:
|
||||||
selector: dd span:nth-child(2)
|
selector: dd span:nth-child(2)
|
||||||
attribute: title
|
attribute: title
|
||||||
|
@ -126,6 +138,6 @@
|
||||||
leechers:
|
leechers:
|
||||||
selector: dd span:nth-child(5)
|
selector: dd span:nth-child(5)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
text: "0"
|
text: 0
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
text: "1"
|
text: 1
|
||||||
|
|
Loading…
Reference in a new issue