turktorrent: fix dateparse

This commit is contained in:
Garfield69 2021-08-19 22:57:44 +12:00
parent ff6ba97b0e
commit 2b227ffeb0
1 changed files with 10 additions and 9 deletions

View File

@ -145,14 +145,9 @@ search:
selector: a[href*="?p=torrents&pid=10&action=details"]
attribute: href
date:
# within the hour
optional: true
selector: td.torrent_name
attribute: data-time
date:
optional: true
# Uploaded 30-01-2019 15:02 by
selector: td.torrent_name:not(:contains(" at "))
selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time]))
optional: true
filters:
- name: regexp
args: "Uploaded (.+?) by"
@ -161,16 +156,22 @@ search:
- name: dateparse
args: "02-01-2006 15:04 -07:00"
date:
optional: true
# Uploaded Friday at 05:11 by
# Uploaded Today at 00:48 by
# Uploaded Yesterday at 23:57 by
selector: td.torrent_name:contains(" at ")
selector: td.torrent_name:contains(" at "):not(:has(abbr[data-time]))
optional: true
filters:
- name: regexp
args: "Uploaded (.+?) by"
- name: replace
args: [" at ", " "]
- name: fuzzytime
date:
# within the hour (unix)
selector: abbr[data-time]
attribute: data-time
optional: true
download:
selector: a[href*="?p=torrents&pid=10&action=download"]
attribute: href