lemonhd: layout changes. resolves #11985

count some selectors from the bottom to allow for optional columns inserted at the top.
fix description
fix name with title attribute
This commit is contained in:
Garfield69 2021-07-22 17:39:41 +12:00
parent e3dac465b8
commit 0d0f5b5155
1 changed files with 9 additions and 8 deletions

View File

@ -72,6 +72,7 @@ search:
- path: torrents.php - path: torrents.php
inputs: inputs:
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# name, imdb, douban
search_area: "{{ if .Query.IMDBID }}imdb{{ else }}name{{ end }}" search_area: "{{ if .Query.IMDBID }}imdb{{ else }}name{{ end }}"
suggest: 0 suggest: 0
column: "{{ .Config.sort }}" column: "{{ .Config.sort }}"
@ -91,7 +92,7 @@ search:
selector: a[href^="details_"] > b selector: a[href^="details_"] > b
title: title:
optional: true optional: true
selector: a[title][href^="details_"] > b selector: a[title][href^="details_"]
attribute: title attribute: title
details: details:
selector: a[href^="details_"] selector: a[href^="details_"]
@ -104,7 +105,7 @@ search:
attribute: href attribute: href
date: date:
# time type: time elapsed (default) # time type: time elapsed (default)
selector: td:nth-child(4) > span[title] selector: td:nth-last-child(7) > span[title]
attribute: title attribute: title
optional: true optional: true
filters: filters:
@ -114,7 +115,7 @@ search:
args: "2006-01-02 15:04:05 -07:00" args: "2006-01-02 15:04:05 -07:00"
date: date:
# time added # time added
selector: td:nth-child(4):not(:has(span[title])):not(:has(a)) selector: td:nth-last-child(7):not(:has(span[title])):not(:has(a))
optional: true optional: true
filters: filters:
- name: append - name: append
@ -122,13 +123,13 @@ search:
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
size: size:
selector: td:nth-child(5) selector: td:nth-last-child(6)
seeders: seeders:
selector: td:nth-child(6) selector: td:nth-last-child(5)
leechers: leechers:
selector: td:nth-child(7) selector: td:nth-last-child(4)
grabs: grabs:
selector: td:nth-child(8) selector: td:nth-last-child(3)
downloadvolumefactor: downloadvolumefactor:
case: case:
img.pro_free: 0 img.pro_free: 0
@ -144,6 +145,6 @@ search:
img.pro_2up: 2 img.pro_2up: 2
"*": 1 "*": 1
description: description:
selector: td:nth-child(2) selector: a[href^="details_"]
remove: a, img remove: a, img
# NexusPHP Standard v1.5 Beta 4 (customised) # NexusPHP Standard v1.5 Beta 4 (customised)