newretro: fix row cause duplicate first torrent

This commit is contained in:
Garfield69 2024-02-17 13:19:42 +13:00
parent 8d29a93f41
commit baa02de229
1 changed files with 3 additions and 7 deletions

View File

@ -125,15 +125,11 @@ search:
# site does not support imdbid searching or display imdb links in results. # site does not support imdbid searching or display imdb links in results.
rows: rows:
selector: "table.tableinborder > tbody > tr:has(a[href^=\"download.php?torrent=\"]){{ if .Config.onlyupload }}:has(img[src=\"pic/oupic.gif\"]){{ else }}{{ end }}" selector: "table.tableinborder[border=\"0\"][cellspacing=\"1\"][cellpadding=\"0\"][style=\"width:100%\"] > tbody > tr:has(a[href^=\"download.php?torrent=\"]){{ if .Config.onlyupload }}:has(img[src=\"pic/oupic.gif\"]){{ else }}{{ end }}"
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
category_href:
selector: a[href^="browse.php?cat="]
attribute: href
optional: true
category_id: category_id:
selector: a[href^="browse.php?cat="] selector: a[href^="browse.php?cat="]
attribute: href attribute: href
@ -142,11 +138,11 @@ search:
- name: querystring - name: querystring
args: cat args: cat
category: category:
text: "{{ if .Result.category_href }}{{ .Result.category_id }}{{ else }}129{{ end }}" text: "{{ if .Result.category_id }}{{ .Result.category_id }}{{ else }}129{{ end }}"
title: title:
selector: a[href^="details.php?id="]:has(b) selector: a[href^="details.php?id="]:has(b)
details: details:
selector: td.content_wrap > table > tbody > tr:nth-child(2) > td:nth-child(4) > a selector: a[href^="details.php?id="]:has(b)
attribute: href attribute: href
download: download:
selector: a[href^="download.php?torrent="] selector: a[href^="download.php?torrent="]