diff --git a/src/Jackett.Common/Definitions/torrent-turk.yml b/src/Jackett.Common/Definitions/torrent-turk.yml index 4d3775442..6271d4f23 100644 --- a/src/Jackett.Common/Definitions/torrent-turk.yml +++ b/src/Jackett.Common/Definitions/torrent-turk.yml @@ -156,29 +156,35 @@ search: selector: a[href*="?p=torrents&pid=10&action=download"] attribute: href date_year: - 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" - name: append - args: " +03:00" # TRT + args: " +00:00" # auto adjusted by site account profile - name: dateparse args: "02-01-2006 15:04 -07:00" date_day: - 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_unix: + # within the hour (unix) + selector: abbr[data-time] + attribute: data-time + optional: true date: - text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}" + text: "{{ if or .Result.date_year .Result.date_unix .Result.date_day }}{{ or .Result.date_year .Result.date_unix .Result.date_day }}{{ else }}now{{ end }}" size: selector: a[rel="torrent_size"] seeders: