bitbazis: simplify date parsing

they've changed the date layout and its to hard to parse so leave off the hours and minutes
This commit is contained in:
Garfield69 2022-07-30 18:11:19 +12:00
parent 673a572f4a
commit 6b0bfa215c
1 changed files with 12 additions and 19 deletions

View File

@ -115,6 +115,7 @@ search:
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
# site does not support imdbid searching
# can support genre searching but you need to know the id, eg &genre23=1 for Comedy (id is 23)
rows:
selector: "table[width=\"100%\"]:last-child tbody tr:has(div.tooltip){{ if .Config.freeleech }}:has(i:contains(\"(Free)\")){{ else }}{{ end }}"
@ -152,26 +153,18 @@ search:
text: "{{ if or .Result.download_1 .Result.download_2 }}{{ or .Result.download_1 .Result.download_2 }}{{ else }}{{ end }}"
size:
selector: td:nth-child(6)
date_browse:
# 2022<br>03/15.
selector: td:nth-child(7):contains("/")
optional: true
filters:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "200601/02. -07:00"
date_browse_xxx:
# 22.03.15
selector: td:nth-child(7):not(:contains("/"))
optional: true
filters:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "06.01.02 -07:00"
date:
text: "{{ if or .Result.date_browse .Result.date_browse_xxx }}{{ or .Result.date_browse .Result.date_browse_xxx }}{{ else }}now{{ end }}"
# 2022<br>07/30. <br>17:02
# 2022<br>07/30. <br> 7:02
# 2022<br>07/09.
selector: td:nth-child(7)
filters:
- name: regexp
args: (\d{6}/\d{2})
- name: append
args: " +01:00" # CET
- name: dateparse
args: "200601/02 -07:00"
grabs:
selector: td:nth-child(5)
seeders: