1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 21:26:08 +00:00

blueroms: new layout selectors

This commit is contained in:
Garfield69 2024-12-14 06:42:19 +13:00
parent b619e18719
commit 4dda31f74a

View file

@ -70,51 +70,37 @@ search:
at: "{{ .Config.sort }}" at: "{{ .Config.sort }}"
rows: rows:
selector: table.table-striped > tbody > tr selector: div.row > div.col-xs-12
fields: fields:
category: category:
selector: td:nth-child(1) a selector: p.card-text a
attribute: href attribute: href
_platform: _platform:
selector: td:nth-child(1) selector: p.card-text a
title: title:
selector: td:nth-child(2) selector: h4.card-title a
filters: filters:
- name: append - name: append
args: " - {{ .Result._platform }}" args: " - {{ .Result._platform }}"
details: details:
selector: td:nth-child(2) a selector: h4.card-title a
attribute: href attribute: href
download: download:
selector: td:nth-child(3) a selector: div.card-footer a
attribute: href attribute: href
size: size:
selector: td:nth-child(4) selector: p.card-text
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
filters: filters:
- name: regexp - name: regexp
args: (\d{4}-\d{2}) args: (\d+\.?\d+[T|G|K]iB)
- name: dateparse date:
args: "yyyy-MM" selector: p.card-text
date_day:
selector: td:nth-child(5):contains("-")
optional: true
filters: filters:
- name: regexp - name: regexp
args: (\d{4}-\d{2}-\d{2}) args: (\d{4}-\d{2}-\d{2})
- name: dateparse - name: dateparse
args: "yyyy-MM-dd" 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: seeders:
text: 1 text: 1
leechers: leechers: