bulltorrent: new dates. resolves #13845

This commit is contained in:
Garfield69
2023-01-07 08:14:04 +13:00
parent 6d3b40b80d
commit 6cc81b6266

View File

@@ -88,17 +88,16 @@ search:
selector: a[href^="/torrent/"] selector: a[href^="/torrent/"]
attribute: href attribute: href
date_day: date_day:
selector: td:nth-child(2):contains("day") selector: td:nth-child(2):contains("day"), td:nth-child(2):contains("Hoy"), td:nth-child(2):contains("Ayer")
optional: true optional: true
filters: filters:
- name: replace
args: ["Hoy", "Today"]
- name: replace
args: ["Ayer", "Yesterday"]
- name: fuzzytime - name: fuzzytime
date_ago:
selector: td:nth-child(2):contains("ago")
optional: true
filters:
- name: timeago
date_year: date_year:
selector: td:nth-child(2):not(:contains("ago")):not(:contains("day")) selector: td:nth-child(2):not(:contains("day")):not(:contains("Hoy")):not(:contains("Ayer"))
optional: true optional: true
filters: filters:
- name: append - name: append
@@ -106,7 +105,7 @@ search:
- name: dateparse - name: dateparse
args: "2 Jan -07:00" args: "2 Jan -07:00"
date: date:
text: "{{ if or .Result.date_year .Result.date_ago .Result.date_day }}{{ or .Result.date_year .Result.date_ago .Result.date_day }}{{ else }}now{{ end }}" text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
size: size:
selector: td:nth-child(3) selector: td:nth-child(3)
seeders: seeders: