byrutor: new layout selectors

This commit is contained in:
Garfield69
2024-10-27 06:08:11 +13:00
parent dd0c30a0c2
commit 15f8e3832d

View File

@@ -356,44 +356,32 @@ search:
rows: rows:
# results without sizes are just pre-release announcements # results without sizes are just pre-release announcements
selector: div.short_search:has(div.shor_subtitles span:nth-child(2):contains(" ")) selector: a.search_res:has(div.search_res_sub span:nth-child(2):contains(" "))
fields: fields:
category: category:
text: 1 text: 1
year: year:
selector: div.shor_subtitles span selector: div.search_res_sub span
filters: filters:
- name: regexp - name: regexp
args: (\d+) args: (\d+)
title: title:
selector: div.short_titles > a selector: a.search_res
filters: filters:
- name: append - name: append
args: " [{{ .Result.year }}]" args: " [{{ .Result.year }}]"
details: details:
selector: div.short_titles > a selector: a.search_res
attribute: href attribute: href
download: download:
selector: div.short_titles > a selector: a.search_res
attribute: href attribute: href
poster: poster:
selector: img selector: img
attribute: src attribute: src
date:
selector: img
attribute: src
filters:
- name: regexp
args: ".*/(\\d{4}-\\d{2})/.*"
- name: dateparse
args: "yyyy-MM"
seeders:
text: 1
leechers:
text: 1
size_rus: size_rus:
selector: div.shor_subtitles span:nth-child(2):contains("Б") selector: div.search_res_sub span:nth-child(2):contains("Б")
optional: true optional: true
default: "0 B" default: "0 B"
filters: filters:
@@ -406,9 +394,15 @@ search:
- name: replace - name: replace
args: ["КБ", "KB"] args: ["КБ", "KB"]
size: size:
selector: div.shor_subtitles span:nth-child(2):contains("B") selector: div.search_res_sub span:nth-child(2):contains("B")
optional: true optional: true
default: "{{ .Result.size_rus }}" default: "{{ .Result.size_rus }}"
date:
text: now
seeders:
text: 1
leechers:
text: 1
downloadvolumefactor: downloadvolumefactor:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor: