From 4dda31f74ae445336ffadc3290b9164c45afb3f9 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 14 Dec 2024 06:42:19 +1300 Subject: [PATCH] blueroms: new layout selectors --- src/Jackett.Common/Definitions/blueroms.yml | 34 ++++++--------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/src/Jackett.Common/Definitions/blueroms.yml b/src/Jackett.Common/Definitions/blueroms.yml index 6a208359e..8969ca15d 100644 --- a/src/Jackett.Common/Definitions/blueroms.yml +++ b/src/Jackett.Common/Definitions/blueroms.yml @@ -70,51 +70,37 @@ search: at: "{{ .Config.sort }}" rows: - selector: table.table-striped > tbody > tr + selector: div.row > div.col-xs-12 fields: category: - selector: td:nth-child(1) a + selector: p.card-text a attribute: href _platform: - selector: td:nth-child(1) + selector: p.card-text a title: - selector: td:nth-child(2) + selector: h4.card-title a filters: - name: append args: " - {{ .Result._platform }}" details: - selector: td:nth-child(2) a + selector: h4.card-title a attribute: href download: - selector: td:nth-child(3) a + selector: div.card-footer a attribute: href size: - selector: td:nth-child(4) - date_year: - selector: td:nth-child(5):not(:contains("-")) - optional: true - filters: - - name: dateparse - args: "yyyy" - date_month: - selector: td:nth-child(5):contains("-") - optional: true + selector: p.card-text filters: - name: regexp - args: (\d{4}-\d{2}) - - name: dateparse - args: "yyyy-MM" - date_day: - selector: td:nth-child(5):contains("-") - optional: true + args: (\d+\.?\d+[T|G|K]iB) + date: + selector: p.card-text filters: - name: regexp args: (\d{4}-\d{2}-\d{2}) - name: dateparse args: "yyyy-MM-dd" - date: - text: "{{ if or .Result.date_year .Result.date_day .Result.date_month }}{{ or .Result.date_year .Result.date_day .Result.date_month }}{{ else }}now{{ end }}" seeders: text: 1 leechers: