mirror of https://github.com/Jackett/Jackett
tokyotosho: amend selectors. resolves #6580
also add magnets and DL/UL volume factors.
This commit is contained in:
parent
6aef316220
commit
5a7e0158d6
|
@ -29,44 +29,50 @@
|
||||||
11: TV/Anime # Batch
|
11: TV/Anime # Batch
|
||||||
15: XXX # JAV
|
15: XXX # JAV
|
||||||
5: Other # Other
|
5: Other # Other
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
- path: "{{if .Query.Keywords }}search.php{{else}}index.php{{end}}"
|
- path: "{{if .Keywords }}search.php{{else}}index.php{{end}}"
|
||||||
inputs:
|
inputs:
|
||||||
terms: "{{ .Query.Keywords }}"
|
terms: "{{ .Keywords }}"
|
||||||
type: "{{ .Config.type-id }}"
|
type: "{{ .Config.type-id }}"
|
||||||
cat: "{{ .Config.type-id }}"
|
cat: "{{ .Config.type-id }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: "table.listing tr.category_0"
|
selector: "table.listing tr.category_0"
|
||||||
after: 1
|
after: 1
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
selector: td:nth-child(1) > a
|
selector: a[href*="?cat="]
|
||||||
attribute: href
|
attribute: href
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: "(\\d+)"
|
args: (\d+)
|
||||||
title:
|
title:
|
||||||
selector: td:nth-child(2) > a:nth-child(2)
|
selector: td.desc-top a[type="application/x-bittorrent"]
|
||||||
details:
|
details:
|
||||||
selector: td:nth-child(3) > a
|
selector: a[href^="details.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
download:
|
download:
|
||||||
selector: td:nth-child(2) > a:nth-child(2)
|
selector: td.desc-top a[type="application/x-bittorrent"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
magnet:
|
||||||
|
selector: a[href^="magnet:?xt="]
|
||||||
|
attribute: href
|
||||||
|
optional: true
|
||||||
size:
|
size:
|
||||||
selector: td:nth-child(4)
|
selector: td.desc-bot
|
||||||
filters:
|
filters:
|
||||||
- name: split
|
- name: split
|
||||||
args: [ "|", 1 ]
|
args: [ "|", 1 ]
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: "Size: (.+?) ?$"
|
args: "Size: (.+?) ?$"
|
||||||
date:
|
date:
|
||||||
selector: td:nth-child(4)
|
selector: td.desc-bot
|
||||||
filters:
|
filters:
|
||||||
- name: split
|
- name: split
|
||||||
args: [ "|", 2 ]
|
args: [ "|", 2 ]
|
||||||
|
@ -77,6 +83,10 @@
|
||||||
- name: dateparse
|
- name: dateparse
|
||||||
args: "2006-01-02 15:04 -07"
|
args: "2006-01-02 15:04 -07"
|
||||||
seeders:
|
seeders:
|
||||||
selector: td:nth-child(5) > span:nth-child(1)
|
selector: td.stats > span:nth-child(1)
|
||||||
leechers:
|
leechers:
|
||||||
selector: td:nth-child(5) > span:nth-child(2)
|
selector: td.stats > span:nth-child(2)
|
||||||
|
downloadvolumefactor:
|
||||||
|
text: 0
|
||||||
|
uploadvolumefactor:
|
||||||
|
text: 1
|
||||||
|
|
Loading…
Reference in New Issue