mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 21:26:08 +00:00
thepiratebay: fix date parsing #2197
commit e5142d9b3f
causing String was not
recognized as a valid DateTime.
This commit is contained in:
parent
3d5c22b640
commit
36c5ec25ab
1 changed files with 23 additions and 2 deletions
|
@ -108,14 +108,35 @@
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: "Size (.+?),"
|
args: "Size (.+?),"
|
||||||
date:
|
date:
|
||||||
selector: td:nth-child(2) font.detDesc
|
optional: true
|
||||||
|
# Today 17:37
|
||||||
|
# Y-day 13:04
|
||||||
|
selector: td:nth-child(2) font.detDesc:contains(":")
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: "Uploaded (.+?),"
|
args: "Uploaded (.+?),"
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["\xA0", " "]
|
args: ["\xA0", " "]
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["Y-day", "yesterday"]
|
args: ["Y-day", "Yesterday"]
|
||||||
|
date:
|
||||||
|
optional: true
|
||||||
|
# 49 mins ago
|
||||||
|
selector: td:nth-child(2) font.detDesc:contains("ago")
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "Uploaded (.+?),"
|
||||||
|
- name: replace
|
||||||
|
args: ["\xA0", " "]
|
||||||
|
date:
|
||||||
|
optional: true
|
||||||
|
# 04-30 2017
|
||||||
|
selector: td:nth-child(2) font.detDesc:not(:contains("ago")):not(:contains(":"))
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "Uploaded (.+?),"
|
||||||
|
- name: replace
|
||||||
|
args: ["\xA0", " "]
|
||||||
- name: dateparse
|
- name: dateparse
|
||||||
args: "01-02 2006"
|
args: "01-02 2006"
|
||||||
seeders:
|
seeders:
|
||||||
|
|
Loading…
Reference in a new issue