mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 14:14:25 +00:00
casstudiotv: date processing updated
This commit is contained in:
parent
aa9cac0d7f
commit
b14b3e2524
1 changed files with 24 additions and 5 deletions
|
@ -322,13 +322,32 @@ search:
|
||||||
grabs:
|
grabs:
|
||||||
selector: td.forumposts span.complet
|
selector: td.forumposts span.complet
|
||||||
date:
|
date:
|
||||||
# 12 янв 2019, 11:26
|
# Вчера, 10:34
|
||||||
selector: td.forumdetails span.forum-descriptions
|
selector: td.forumdetails span.forum-descriptions:contains("Вчера")
|
||||||
|
optional: true
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "(Вчера, \\d{2}:\\d{2})"
|
||||||
|
- name: replace
|
||||||
|
args: ["Вчера", "Today"]
|
||||||
|
- name: fuzzytime
|
||||||
|
date:
|
||||||
|
# Сегодня, 17:54
|
||||||
|
selector: td.forumdetails span.forum-descriptions:contains("Сегодня")
|
||||||
|
optional: true
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "(Сегодня, \\d{2}:\\d{2})"
|
||||||
|
- name: replace
|
||||||
|
args: ["Сегодня", "Today"]
|
||||||
|
- name: fuzzytime
|
||||||
|
date:
|
||||||
|
# 12 янв 2019, 11:26
|
||||||
|
selector: td.forumdetails span.forum-descriptions:not(:contains("Сегодня")):not(:contains("Вчера"))
|
||||||
|
optional: true
|
||||||
filters:
|
filters:
|
||||||
# extract the date
|
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: "(\\d{2} \\D{3} \\d{4}, \\d{2}:\\d{2})"
|
args: "(\\d{2} \\D{3} \\d{4}, \\d{2}:\\d{2})"
|
||||||
# replace month abbreviations
|
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["янв", "Jan"]
|
args: ["янв", "Jan"]
|
||||||
- name: replace
|
- name: replace
|
||||||
|
@ -354,7 +373,7 @@ search:
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["дек", "Dec"]
|
args: ["дек", "Dec"]
|
||||||
- name: dateparse
|
- name: dateparse
|
||||||
args: "02 Jan 06, 15:04"
|
args: "02 Jan 2006, 15:04"
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
text: 1
|
text: 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
|
|
Loading…
Add table
Reference in a new issue