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 - name: cat-id
type: text type: text
label: Category Id label: Category Id
- name: lang-id # no longer supported?
type: text # - name: lang-id
label: Language Id # type: text
# label: Language Id
search: search:
path: "ajax/page.ajax.php" path: "/"
headers:
x-requested-with: ["XMLHttpRequest"]
inputs: inputs:
page: "torrents" q: "{{ .Query.Keywords }}"
filename: "{{ .Query.Keywords }}" id: "{{ .Config.cat-id }}"
category: "{{ .Config.cat-id }}"
lang_id: "{{ .Config.lang-id }}"
rows: rows:
selector: div.table-responsive > table > tbody > tr selector: div.table-responsive > table > tbody > tr
fields: fields:
category: category:
selector: td:nth-child(1) > div selector: a[href^="/?id="]
case: attribute: href
":contains(\"Anime - Sub\")": 1 filters:
":contains(\"Anime - Raw\")": 2 - name: querystring
":contains(\"Anime - Dub\")": 3 args: id
":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
title: title:
selector: td:nth-child(3) > a.torrent > span.span-1440 selector: td:nth-child(3) > a.torrent > span.span-1440
details: details:
@ -78,6 +61,9 @@
download: download:
selector: td:nth-child(5) > a selector: td:nth-child(5) > a
attribute: href attribute: href
magnet:
selector: a[href^="magnet:?"]
attribute: href
size: size:
selector: td:nth-child(7) selector: td:nth-child(7)
date: date:
@ -92,3 +78,9 @@
selector: td:nth-child(9) selector: td:nth-child(9)
leechers: leechers:
selector: td:nth-child(10) selector: td:nth-child(10)
grabs:
selector: td:nth-child(11)
downloadvolumefactor:
text: "0"
uploadvolumefactor:
text: "1"