byrutor: new result selectors

This commit is contained in:
Garfield69 2021-08-25 14:55:41 +12:00
parent e686bf40ad
commit 16f288dcf9
1 changed files with 6 additions and 9 deletions

View File

@ -287,33 +287,30 @@ search:
resorder: desc resorder: desc
rows: rows:
selector: div.short_search:has(div.shor_subtitles span:nth-child(2):contains("Б")) selector: div.short_item:has(div.shor_subtitle span:nth-child(2):contains("Б"))
fields: fields:
category: category:
text: 1 text: 1
year: year:
selector: div.shor_subtitles span selector: div.shor_subtitle span
filters: filters:
- name: regexp - name: regexp
args: (\d+) args: (\d+)
title: title:
selector: div.short_titles > a selector: div.short_title > a
filters: filters:
- name: append - name: append
args: " [{{ .Result.year }}]" args: " [{{ .Result.year }}]"
details: details:
selector: div.short_titles > a selector: div.short_title > a
attribute: href attribute: href
download: download:
selector: div.short_titles > a selector: div.short_title > a
attribute: href attribute: href
poster: poster:
selector: img selector: img
attribute: src attribute: src
description:
selector: div.shor_desc
optional: true
date: date:
text: now text: now
seeders: seeders:
@ -321,7 +318,7 @@ search:
leechers: leechers:
text: 1 text: 1
size: size:
selector: div.shor_subtitles span:nth-child(2) selector: div.shor_subtitle span:nth-child(2)
filters: filters:
- name: replace - name: replace
args: ["ТБ", "TB"] args: ["ТБ", "TB"]