From 807c1b1df962cbedf2f68796d72c5b82d15e4747 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 25 Nov 2020 07:43:21 +1300 Subject: [PATCH] beyond-hd: support for new layout #10288 --- .../Definitions/beyond-hd-oneurl.yml | 15 ++++----------- src/Jackett.Common/Definitions/beyond-hd.yml | 15 ++++----------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/Jackett.Common/Definitions/beyond-hd-oneurl.yml b/src/Jackett.Common/Definitions/beyond-hd-oneurl.yml index 548249317b246..3184a90830787 100644 --- a/src/Jackett.Common/Definitions/beyond-hd-oneurl.yml +++ b/src/Jackett.Common/Definitions/beyond-hd-oneurl.yml @@ -64,8 +64,7 @@ search: qty: 100 rows: - selector: div.table-torrents > table > tbody > tr - after: 1 + selector: div.table-torrents > table > tbody > tr[id^="torrentposter"] fields: _category: @@ -79,18 +78,12 @@ search: text: "{{ if .Result._category }}{{ .Result._category }}{{ else }}1{{ end }}" title: selector: a.torrent-name - download: - selector: a[href*="/download/"] - attribute: href details: selector: a.torrent-name attribute: href - poster: - selector: div.torrent-poster img - attribute: src - filters: - - name: replace - args: ["/img/person.png", ""] + download: + selector: a[href*="/download/"] + attribute: href date: selector: td:not(a[href$="/history"]) span.text-orange filters: diff --git a/src/Jackett.Common/Definitions/beyond-hd.yml b/src/Jackett.Common/Definitions/beyond-hd.yml index 61b4da49a91c4..a59d5fa263679 100644 --- a/src/Jackett.Common/Definitions/beyond-hd.yml +++ b/src/Jackett.Common/Definitions/beyond-hd.yml @@ -84,8 +84,7 @@ search: qty: 100 rows: - selector: div.table-torrents > table > tbody > tr - after: 1 + selector: div.table-torrents > table > tbody > tr[id^="torrentposter"] fields: _category: @@ -99,18 +98,12 @@ search: text: "{{ if .Result._category }}{{ .Result._category }}{{ else }}1{{ end }}" title: selector: a.torrent-name - download: - selector: a[href*="/download/"] - attribute: href details: selector: a.torrent-name attribute: href - poster: - selector: div.torrent-poster img - attribute: src - filters: - - name: replace - args: ["/img/person.png", ""] + download: + selector: a[href*="/download/"] + attribute: href date: selector: td:not(a[href$="/history"]) span.text-orange filters: