1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-04 02:38:08 +00:00

isohunt2: ad configsort option

no need for additional pages
240 hits is excessive with 3 calls
80 in one call is good enough
This commit is contained in:
Garfield69 2019-12-17 18:38:47 +13:00
parent 67a2681bad
commit c9656a8723

View file

@ -41,6 +41,14 @@
"7": "Other" "7": "Other"
"8": "Series & TV" "8": "Series & TV"
"9": "Books" "9": "Books"
- name: sort
type: select
label: Sort requested from site
default: "created_at"
options:
"created_at": "created"
"seeders": "seeders"
"size": "size"
download: download:
selector: a.btn-magnet selector: a.btn-magnet
@ -53,19 +61,14 @@
paths: paths:
- path: torrents - path: torrents
inputs: inputs:
"Torrent_page": "0" ihq: "{{ .Keywords }}"
- path: torrents iht: "{{ .Config.category }}"
inputs: age: 0
"Torrent_page": "40" Torrent_sort: "{{ .Config.sort }}"
- path: torrents
inputs:
"Torrent_page": "80"
inputs:
"ihq": "{{ .Keywords }}"
"iht": "{{ .Config.category }}"
"age": "0"
rows: rows:
selector: table > tbody > tr[data-key="0"] selector: table > tbody > tr[data-key="0"]
fields: fields:
title: title:
selector: td.title-row > a[href^="/"] > span selector: td.title-row > a[href^="/"] > span
@ -87,16 +90,16 @@
category: category:
selector: td.category-row > span selector: td.category-row > span
case: case:
"span[title=\"anime\"]": "1" "span[title=\"anime\"]": 1
"span[title=\"software\"]": "2" "span[title=\"software\"]": 2
"span[title=\"games\"]": "3" "span[title=\"games\"]": 3
"span[title=\"adult\"]": "4" "span[title=\"adult\"]": 4
"span[title=\"movies\"]": "5" "span[title=\"movies\"]": 5
"span[title=\"music\"]": "6" "span[title=\"music\"]": 6
"span[title=\"other\"]": "7" "span[title=\"other\"]": 7
"span[title=\"seriestv\"]": "8" "span[title=\"seriestv\"]": 8
"span[title=\"books\"]": "9" "span[title=\"books\"]": 9
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1