1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 14:14:25 +00:00

spacetorrent: add freeleech filter #9456

This commit is contained in:
Garfield69 2020-09-15 07:45:37 +12:00
parent 284dc04c88
commit f94566b628

View file

@ -24,20 +24,32 @@ caps:
movie-search: [q] movie-search: [q]
music-search: [q] music-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
login: login:
method: post method: post
path: ajax/takelogin.php path: ajax/takelogin.php
inputs: inputs:
snlo: "certified" snlo: certified
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
returnto: "/my.php" returnto: "/recherche"
test: test:
path: my.php path: recherche
selector: a[href="../logout"] selector: a[href="../logout"]
ratio: ratio:
path: my.php path: recherche
selector: a.nav-link i[class="ti-pulse"] selector: a.nav-link i[class="ti-pulse"]
download: download:
@ -45,12 +57,17 @@ download:
attribute: href attribute: href
search: search:
# https://www.spacetorrent.cloud/recherche?advanced_search=true&advanced_search_term=&cat=0&freemium=1
path: recherche path: recherche
inputs: inputs:
search: "{{ .Keywords }}" advanced_search: true
advanced_search_term: "{{ .Keywords }}"
cat: 0 cat: 0
freemium: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
rows: rows:
selector: table#table-1 tbody tr selector: table#table-1 tbody tr
fields: fields:
download: download:
selector: a[href^="../torrent/"] selector: a[href^="../torrent/"]
@ -95,8 +112,11 @@ search:
selector: td:nth-child(7) selector: td:nth-child(7)
downloadvolumefactor: downloadvolumefactor:
case: case:
"i.fa-star": "0" "i.fa-star": 0
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
minimumseedtime:
# 1 day (as seconds = 24 x 60 x 60)
text: 86400
# engine n/a # engine n/a