Anidex: fix definition

This commit is contained in:
kaso17 2017-09-01 18:08:47 +02:00
parent 1cd0358531
commit 92bda2b09b
1 changed files with 21 additions and 29 deletions

View File

@ -34,42 +34,25 @@
- name: cat-id
type: text
label: Category Id
- name: lang-id
type: text
label: Language Id
# no longer supported?
# - name: lang-id
# type: text
# label: Language Id
search:
path: "ajax/page.ajax.php"
headers:
x-requested-with: ["XMLHttpRequest"]
path: "/"
inputs:
page: "torrents"
filename: "{{ .Query.Keywords }}"
category: "{{ .Config.cat-id }}"
lang_id: "{{ .Config.lang-id }}"
q: "{{ .Query.Keywords }}"
id: "{{ .Config.cat-id }}"
rows:
selector: div.table-responsive > table > tbody > tr
fields:
category:
selector: td:nth-child(1) > div
case:
":contains(\"Anime - Sub\")": 1
":contains(\"Anime - Raw\")": 2
":contains(\"Anime - Dub\")": 3
":contains(\"LA - Sub\")": 4
":contains(\"LA - Raw\")": 5
":contains(\"Light Novel\")": 6
":contains(\"Manga - TLed\")": 7
":contains(\"Manga - Raw\")": 8
":contains(\"♫ - Lossy\")": 9
":contains(\"♫ - Lossless\")": 10
":contains(\"♫ - Video\")": 11
":contains(\"Games\")": 12
":contains(\"Applications\")": 13
":contains(\"Pictures\")": 14
":contains(\"Adult Video\")": 15
":contains(\"Other\")": 16
"*": 0 # some old torrents don't have a category
selector: a[href^="/?id="]
attribute: href
filters:
- name: querystring
args: id
title:
selector: td:nth-child(3) > a.torrent > span.span-1440
details:
@ -78,6 +61,9 @@
download:
selector: td:nth-child(5) > a
attribute: href
magnet:
selector: a[href^="magnet:?"]
attribute: href
size:
selector: td:nth-child(7)
date:
@ -92,3 +78,9 @@
selector: td:nth-child(9)
leechers:
selector: td:nth-child(10)
grabs:
selector: td:nth-child(11)
downloadvolumefactor:
text: "0"
uploadvolumefactor:
text: "1"