piratbitL: new selectors AGAIN!

This commit is contained in:
Garfield69
2023-09-27 07:18:07 +13:00
parent 003b88d5fc
commit e058153b28

View File

@@ -693,7 +693,7 @@ search:
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"] args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "сезон $1 сери $2"]
rows: rows:
selector: tr[id^="tor_"]:has(a.dlLink) selector: tr[id^="tor_"]:has(a[href^="/dl.php?id="])
fields: fields:
category: category:
@@ -703,7 +703,7 @@ search:
- name: querystring - name: querystring
args: f args: f
title: title:
selector: a.gengood selector: a.title
filters: filters:
# normalize to SXXEYY format # normalize to SXXEYY format
- name: re_replace - name: re_replace
@@ -769,23 +769,23 @@ search:
- name: append - name: append
args: "{{ if .Config.addrussiantotitle }} RUS{{ else }}{{ end }}" args: "{{ if .Config.addrussiantotitle }} RUS{{ else }}{{ end }}"
details: details:
selector: a.gengood selector: a.title
attribute: href attribute: href
download: download:
selector: a.dlLink selector: a[href^="/dl.php?id="]
attribute: href attribute: href
description: description:
selector: td:first-child span selector: td:first-child b span
attribute: title attribute: title
size: size:
selector: a.dlLink selector: a[href^="/dl.php?id="]
date_day: date_day:
# 23:18 # 23:18
selector: td:last-child > p:first-child:not(:contains("-")) selector: td:last-child > p:first-child:not(:contains("-"))
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +03:00" # MSK args: " +00:00" # UTC
- name: dateparse - name: dateparse
args: "HH:mm zzz" args: "HH:mm zzz"
date_year: date_year:
@@ -794,17 +794,17 @@ search:
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +03:00" # MSK args: " +00:00" # UTC
- name: dateparse - name: dateparse
args: "HH:mm d-MM-yy zzz" args: "HH:mm d-MM-yy zzz"
date: date:
text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}"
seeders:
selector: td:nth-child(5)
leechers:
selector: td:nth-child(6)
grabs: grabs:
selector: td:nth-child(7) selector: td:nth-child(7)
seeders:
selector: td.seedmed
leechers:
selector: td.leechmed
downloadvolumefactor: downloadvolumefactor:
case: case:
img.goldrelise: 0 img.goldrelise: 0