mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
bitgamer: replace invalid dates with now
This commit is contained in:
@@ -130,7 +130,7 @@ search:
|
|||||||
download:
|
download:
|
||||||
selector: a[href^="download.php"]
|
selector: a[href^="download.php"]
|
||||||
attribute: href
|
attribute: href
|
||||||
date:
|
date_valid:
|
||||||
# several old torrents with `0000-00-00 00:00:00` dates
|
# several old torrents with `0000-00-00 00:00:00` dates
|
||||||
selector: td:nth-child(5):not(:contains("000-00-0000:00:00"))
|
selector: td:nth-child(5):not(:contains("000-00-0000:00:00"))
|
||||||
filters:
|
filters:
|
||||||
@@ -139,6 +139,8 @@ search:
|
|||||||
- name: dateparse
|
- name: dateparse
|
||||||
args: "yyyy-MM-ddHH:mm:ss zzz"
|
args: "yyyy-MM-ddHH:mm:ss zzz"
|
||||||
optional: true
|
optional: true
|
||||||
|
date:
|
||||||
|
text: "{{ if .Result.date_valid }}{{ .Result.date_valid }}{{ else }}now{{ end }}"
|
||||||
size:
|
size:
|
||||||
selector: td:nth-child(6)
|
selector: td:nth-child(6)
|
||||||
seeders:
|
seeders:
|
||||||
|
Reference in New Issue
Block a user