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
|
# does not support imdbid search and does not return imdb link in results
|
||||||
|
|
||||||
rows:
|
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:
|
fields:
|
||||||
category:
|
category:
|
||||||
|
@ -113,9 +113,9 @@ search:
|
||||||
- name: querystring
|
- name: querystring
|
||||||
args: category
|
args: category
|
||||||
title:
|
title:
|
||||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
selector: a[href^="index.php?page=torrent-details&id="]
|
||||||
poster:
|
poster:
|
||||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
selector: a[href^="index.php?page=torrent-details&id="]
|
||||||
attribute: onmouseover
|
attribute: onmouseover
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
|
@ -123,26 +123,30 @@ search:
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["torrentimg/nocover.jpg", ""]
|
args: ["torrentimg/nocover.jpg", ""]
|
||||||
details:
|
details:
|
||||||
selector: a[onmouseover][href^="index.php?page=torrent-details&id="]
|
selector: a[href^="index.php?page=torrent-details&id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
download:
|
download:
|
||||||
selector: a[href^="download.php?id="]
|
selector: a[href^="download.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
superuser:
|
||||||
|
selector: img[src="images/recomend.jpg"]
|
||||||
|
attribute: title
|
||||||
|
optional: true
|
||||||
date:
|
date:
|
||||||
selector: td:nth-last-child(8)
|
selector: "{{ if .Result.superuser }}td:nth-last-child(10){{ else }}td:nth-last-child(8){{ end }}"
|
||||||
filters:
|
filters:
|
||||||
- name: append
|
- name: append
|
||||||
args: " +00:00" # auto adjusted by site account profile
|
args: " +00:00" # auto adjusted by site account profile
|
||||||
- name: dateparse
|
- name: dateparse
|
||||||
args: "02/01/2006 -07:00"
|
args: "02/01/2006 -07:00"
|
||||||
seeders:
|
seeders:
|
||||||
selector: td:nth-last-child(7)
|
selector: "{{ if .Result.superuser }}td:nth-last-child(9){{ else }}td:nth-last-child(7){{ end }}"
|
||||||
leechers:
|
leechers:
|
||||||
selector: td:nth-last-child(6)
|
selector: "{{ if .Result.superuser }}td:nth-last-child(8){{ else }}td:nth-last-child(6){{ end }}"
|
||||||
grabs:
|
grabs:
|
||||||
selector: td:nth-last-child(5)
|
selector: "{{ if .Result.superuser }}td:nth-last-child(7){{ else }}td:nth-last-child(5){{ end }}"
|
||||||
size:
|
size:
|
||||||
selector: td:nth-last-child(4)
|
selector: "{{ if .Result.superuser }}td:nth-last-child(5){{ else }}td:nth-last-child(4){{ end }}"
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
img[src="images/freeleech.gif"]: 0
|
img[src="images/freeleech.gif"]: 0
|
||||||
|
|
Loading…
Reference in New Issue