mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
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:
@@ -115,6 +115,7 @@ search:
|
|||||||
sort: "{{ .Config.sort }}"
|
sort: "{{ .Config.sort }}"
|
||||||
type: "{{ .Config.type }}"
|
type: "{{ .Config.type }}"
|
||||||
# site does not support imdbid searching
|
# 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:
|
rows:
|
||||||
selector: "table[width=\"100%\"]:last-child tbody tr:has(div.tooltip){{ if .Config.freeleech }}:has(i:contains(\"(Free)\")){{ else }}{{ end }}"
|
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 }}"
|
text: "{{ if or .Result.download_1 .Result.download_2 }}{{ or .Result.download_1 .Result.download_2 }}{{ else }}{{ end }}"
|
||||||
size:
|
size:
|
||||||
selector: td:nth-child(6)
|
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:
|
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:
|
grabs:
|
||||||
selector: td:nth-child(5)
|
selector: td:nth-child(5)
|
||||||
seeders:
|
seeders:
|
||||||
|
Reference in New Issue
Block a user