mirror of https://github.com/Jackett/Jackett
thesceneplace: detect non-regular users and amend torrent row processing.
if the torrent row has the images/recomend.jpg then offset the selector count for date, seeds, leeches, grabs and size. also drop the mouseover dependency.
This commit is contained in:
parent
0356dd7fae
commit
477562ca55
|
@ -103,7 +103,7 @@ search:
|
|||
# does not support imdbid search and does not return imdb link in results
|
||||
|
||||
rows:
|
||||
selector: "table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]):not(:has(a[href^=\"index.php?page=userdetails&id=\"])){{ if .Config.freeleech }}:has(img[src=\"images/freeleech.gif\"]){{ else }}{{ end }}{{ if .Config.freeleech }}, table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]):not(:has(a[href^=\"index.php?page=userdetails&id=\"])):has(img[src=\"images/gold.gif\"]){{ else }}{{ end }}"
|
||||
selector: "table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]){{ if .Config.freeleech }}:has(img[src=\"images/freeleech.gif\"]){{ else }}{{ end }}{{ if .Config.freeleech }}, table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]):has(img[src=\"images/gold.gif\"]){{ else }}{{ end }}"
|
||||
|
||||
fields:
|
||||
category:
|
||||
|
@ -113,9 +113,9 @@ search:
|
|||
- name: querystring
|
||||
args: category
|
||||
title:
|
||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
||||
selector: a[href^="index.php?page=torrent-details&id="]
|
||||
poster:
|
||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
||||
selector: a[href^="index.php?page=torrent-details&id="]
|
||||
attribute: onmouseover
|
||||
filters:
|
||||
- name: regexp
|
||||
|
@ -123,26 +123,30 @@ search:
|
|||
- name: replace
|
||||
args: ["torrentimg/nocover.jpg", ""]
|
||||
details:
|
||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
||||
selector: a[href^="index.php?page=torrent-details&id="]
|
||||
attribute: href
|
||||
download:
|
||||
selector: a[href^="download.php?id="]
|
||||
attribute: href
|
||||
superuser:
|
||||
selector: img[src="images/recomend.jpg"]
|
||||
attribute: title
|
||||
optional: true
|
||||
date:
|
||||
selector: td:nth-last-child(8)
|
||||
selector: "{{ if .Result.superuser }}td:nth-last-child(10){{ else }}td:nth-last-child(8){{ end }}"
|
||||
filters:
|
||||
- name: append
|
||||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: dateparse
|
||||
args: "02/01/2006 -07:00"
|
||||
seeders:
|
||||
selector: td:nth-last-child(7)
|
||||
selector: "{{ if .Result.superuser }}td:nth-last-child(9){{ else }}td:nth-last-child(7){{ end }}"
|
||||
leechers:
|
||||
selector: td:nth-last-child(6)
|
||||
selector: "{{ if .Result.superuser }}td:nth-last-child(8){{ else }}td:nth-last-child(6){{ end }}"
|
||||
grabs:
|
||||
selector: td:nth-last-child(5)
|
||||
selector: "{{ if .Result.superuser }}td:nth-last-child(7){{ else }}td:nth-last-child(5){{ end }}"
|
||||
size:
|
||||
selector: td:nth-last-child(4)
|
||||
selector: "{{ if .Result.superuser }}td:nth-last-child(5){{ else }}td:nth-last-child(4){{ end }}"
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
img[src="images/freeleech.gif"]: 0
|
||||
|
|
Loading…
Reference in New Issue