diff --git a/src/Jackett.Common/Definitions/3evils.yml b/src/Jackett.Common/Definitions/3evils.yml index 737d8e74b..7cc5e0c86 100644 --- a/src/Jackett.Common/Definitions/3evils.yml +++ b/src/Jackett.Common/Definitions/3evils.yml @@ -142,22 +142,19 @@ search: date_day: # Today
10:20 AM # Yesterday
08:03 PM - optional: true selector: td:nth-last-child(7):contains("day") - filters: - - name: append - args: " +00:00" # auto adjusted by site account profile + # auto adjusted by site account profile + optional: true date_year: # Feb 14 2019
10:20 AM - optional: true selector: td:nth-last-child(7):not(:contains("day")) + # auto adjusted by site account profile + optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/abtorrents.yml b/src/Jackett.Common/Definitions/abtorrents.yml index b37432afb..a3b224ac5 100644 --- a/src/Jackett.Common/Definitions/abtorrents.yml +++ b/src/Jackett.Common/Definitions/abtorrents.yml @@ -137,25 +137,23 @@ search: attribute: href files: selector: td:nth-last-child(9) - date_yday: + date_day: # Yesterday
6:00 AM selector: td:nth-last-child(7):contains("day") + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: fuzzytime date_year: # Aug 6 2021
7:25 PM selector: td:nth-last-child(7):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 3:04 PM -07:00" + args: "Jan 2 2006 3:04 PM" date: - text: "{{ if or .Result.date_yday .Result.date_year }}{{ or .Result.date_yday .Result.date_year }}{{ else }}now{{ end }}" + text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/aidoruonline.yml b/src/Jackett.Common/Definitions/aidoruonline.yml index ab54838d7..271d0dfb5 100644 --- a/src/Jackett.Common/Definitions/aidoruonline.yml +++ b/src/Jackett.Common/Definitions/aidoruonline.yml @@ -115,11 +115,10 @@ search: selector: td:nth-last-child(2) date: selector: td:last-child + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "060102 15:04:05 -07:00" + args: "060102 15:04:05" downloadvolumefactor: case: img[src="images/freeleech.png"]: 0 # dl not counted diff --git a/src/Jackett.Common/Definitions/amigosshare.yml b/src/Jackett.Common/Definitions/amigosshare.yml index 4ed91d400..8f7e4cba8 100644 --- a/src/Jackett.Common/Definitions/amigosshare.yml +++ b/src/Jackett.Common/Definitions/amigosshare.yml @@ -299,16 +299,15 @@ search: "[src$=\"/outros2.png\"]": 130 date_optional: selector: p:contains("Lançado:") + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Lançado: (.+?)$" - name: re_replace args: [" (\\d:)", " 0$1"] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/06 15:04:05 -07:00" + args: "02/01/06 15:04:05" date: text: "{{ if .Result.date_optional }}{{ .Result.date_optional }}{{ else }}now{{ end }}" size: diff --git a/src/Jackett.Common/Definitions/arabp2p.yml b/src/Jackett.Common/Definitions/arabp2p.yml index fb3c170bb..0970b697a 100644 --- a/src/Jackett.Common/Definitions/arabp2p.yml +++ b/src/Jackett.Common/Definitions/arabp2p.yml @@ -149,11 +149,10 @@ search: date: selector: td:nth-child(4) span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-02 15:04:05 -07:00" + args: "2006-01-02 15:04:05" seeders: selector: td:nth-child(5) leechers: diff --git a/src/Jackett.Common/Definitions/bitsexy.yml b/src/Jackett.Common/Definitions/bitsexy.yml index b24bf4233..ced5ae99d 100644 --- a/src/Jackett.Common/Definitions/bitsexy.yml +++ b/src/Jackett.Common/Definitions/bitsexy.yml @@ -151,20 +151,20 @@ search: args: "src=(.*?) width" files: selector: div.torrenttable:nth-last-child(7) - date_year: - # Jul 4 2019 08:04 AM - selector: div.torrenttable:nth-last-child(5):not(:contains("day")) - optional: true - filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" date_day: # Today 02:40 PM # Yesterday 09:10 AM selector: div.torrenttable:nth-last-child(5):contains("day") + # auto adjusted by site account profile optional: true + date_year: + # Jul 4 2019 08:04 AM + selector: div.torrenttable:nth-last-child(5):not(:contains("day")) + # auto adjusted by site account profile + optional: true + filters: + - name: dateparse + args: "Jan 2 2006 03:04 PM" date: text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: diff --git a/src/Jackett.Common/Definitions/bitturk.yml b/src/Jackett.Common/Definitions/bitturk.yml index 0f11ccd32..d38229841 100644 --- a/src/Jackett.Common/Definitions/bitturk.yml +++ b/src/Jackett.Common/Definitions/bitturk.yml @@ -172,34 +172,34 @@ search: download: selector: a[href*="?p=torrents&pid=10&action=download"] attribute: href - date_year: - # Uploaded 30-01-2019 15:02 by - selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) - optional: true - filters: - - name: regexp - args: "Uploaded (.+?) by" - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "02-01-2006 15:04 -07:00" date_day: # Uploaded Friday at 05:11 by # Uploaded Today at 00:48 by # Uploaded Yesterday at 23:57 by selector: td.torrent_name:contains(" at "):not(:has(abbr[data-time])) + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Uploaded (.+?) by" - name: fuzzytime + date_year: + # Uploaded 30-01-2019 15:02 by + selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) + # auto adjusted by site account profile + optional: true + filters: + - name: regexp + args: "Uploaded (.+?) by" + - name: dateparse + args: "02-01-2006 15:04" date_unix: # within the hour (unix) selector: abbr[data-time] attribute: data-time optional: true date: - 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 }}" + text: "{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}" size: selector: a[rel="torrent_size"] seeders: diff --git a/src/Jackett.Common/Definitions/bwtorrents.yml b/src/Jackett.Common/Definitions/bwtorrents.yml index 6ac8ddc82..288d4e27c 100644 --- a/src/Jackett.Common/Definitions/bwtorrents.yml +++ b/src/Jackett.Common/Definitions/bwtorrents.yml @@ -184,11 +184,10 @@ search: selector: td:nth-child(3) date: selector: td:nth-child(5) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-200615:04:05 -07:00" + args: "02-01-200615:04:05" size: selector: td:nth-child(6) download: diff --git a/src/Jackett.Common/Definitions/cartoonchaos.yml b/src/Jackett.Common/Definitions/cartoonchaos.yml index 4c8b14fa4..e8f59d6a7 100644 --- a/src/Jackett.Common/Definitions/cartoonchaos.yml +++ b/src/Jackett.Common/Definitions/cartoonchaos.yml @@ -140,25 +140,23 @@ search: date_day: # Yesterday at 10:03:30 PM selector: td:nth-child(5):contains("day") + # auto adjusted by site account profile optional: true filters: - name: re_replace args: ["[ ]at|[\\s+]|[//\xa0],\\/g", " "] - - name: append - args: " +00:00" # auto adjusted by site account profile date_year: # February 09, 2019, 06:35:08 AM selector: td:nth-child(5):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - name: re_replace args: ["[,]|[\\s+]|[//\xa0],\\/g", " "] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "January 02 2006 03:04:05 PM -07:00" + args: "January 02 2006 03:04:05 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" seeders: selector: td:nth-child(6) leechers: diff --git a/src/Jackett.Common/Definitions/cathoderaytube.yml b/src/Jackett.Common/Definitions/cathoderaytube.yml index c69f8705f..b7ade7639 100644 --- a/src/Jackett.Common/Definitions/cathoderaytube.yml +++ b/src/Jackett.Common/Definitions/cathoderaytube.yml @@ -137,11 +137,10 @@ search: date: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/crazyhd.yml b/src/Jackett.Common/Definitions/crazyhd.yml index 0c575842f..c3ebde950 100644 --- a/src/Jackett.Common/Definitions/crazyhd.yml +++ b/src/Jackett.Common/Definitions/crazyhd.yml @@ -200,11 +200,10 @@ search: selector: div.torrent-size date: selector: div.torrent-time + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: div.torrent-seeder leechers: diff --git a/src/Jackett.Common/Definitions/crazyspirits.yml b/src/Jackett.Common/Definitions/crazyspirits.yml index b74926b0f..a3d96fc96 100644 --- a/src/Jackett.Common/Definitions/crazyspirits.yml +++ b/src/Jackett.Common/Definitions/crazyspirits.yml @@ -269,13 +269,12 @@ search: date: selector: a[onmouseover][href^="torrents-details.php?id="] attribute: onmouseover + # auto adjusted by site account profile filters: - name: regexp args: "Partagé Voilà : (.*?)08:10 AM # Juče
06:44 PM - optional: true selector: td:nth-of-type(6):contains("Danas"), td:nth-of-type(6):contains("Juče") + # auto adjusted by site account profile + optional: true filters: - name: replace args: ["Danas", "Today"] - name: replace args: ["Juče", "Yesterday"] - - name: append - args: " +00:00" # auto adjusted by site account profile date_year: # Feb 14 2019
10:20 AM - optional: true selector: td:nth-of-type(6):not(:contains("Juče")):not(:contains("Danas")) + # auto adjusted by site account profile + optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-of-type(7) grabs: diff --git a/src/Jackett.Common/Definitions/crt2fa.yml b/src/Jackett.Common/Definitions/crt2fa.yml index 89b136547..79603933a 100644 --- a/src/Jackett.Common/Definitions/crt2fa.yml +++ b/src/Jackett.Common/Definitions/crt2fa.yml @@ -127,11 +127,10 @@ search: date: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/divteam.yml b/src/Jackett.Common/Definitions/divteam.yml index 8e438d797..1ffc56d01 100644 --- a/src/Jackett.Common/Definitions/divteam.yml +++ b/src/Jackett.Common/Definitions/divteam.yml @@ -157,11 +157,10 @@ search: selector: td:nth-child(4) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: td:nth-last-child(4) leechers: diff --git a/src/Jackett.Common/Definitions/docspedia.yml b/src/Jackett.Common/Definitions/docspedia.yml index 1878ee9ce..f0ae9a5d4 100644 --- a/src/Jackett.Common/Definitions/docspedia.yml +++ b/src/Jackett.Common/Definitions/docspedia.yml @@ -139,22 +139,22 @@ search: "*": 1 uploadvolumefactor: text: 1 - date_year: - remove: a - # Jul 4 2019 08:04 AM - selector: div.torrenttable:nth-child(2):not(:contains("day")) - optional: true - filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" date_day: remove: a # Today 02:40 PM # Yesterday 09:10 AM selector: div.torrenttable:nth-child(2):contains("day") + # auto adjusted by site account profile optional: true + date_year: + remove: a + # Jul 4 2019 08:04 AM + selector: div.torrenttable:nth-child(2):not(:contains("day")) + # auto adjusted by site account profile + optional: true + filters: + - name: dateparse + args: "Jan 2 2006 03:04 PM" date: text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" minimumratio: diff --git a/src/Jackett.Common/Definitions/dreamtracker.yml b/src/Jackett.Common/Definitions/dreamtracker.yml index 7572b7519..aaac83485 100644 --- a/src/Jackett.Common/Definitions/dreamtracker.yml +++ b/src/Jackett.Common/Definitions/dreamtracker.yml @@ -167,34 +167,34 @@ search: download: selector: a[href*="?p=torrents&pid=10&action=download"] attribute: href - date_year: - # Uploaded 30-01-2019 15:02 by - selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) - optional: true - filters: - - name: regexp - args: "Uploaded (.+?) by" - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "02-01-2006 15:04 -07:00" date_day: # Uploaded Friday at 05:11 by # Uploaded Today at 00:48 by # Uploaded Yesterday at 23:57 by selector: td.torrent_name:contains(" at "):not(:has(abbr[data-time])) + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Uploaded (.+?) by" - name: fuzzytime + date_year: + # Uploaded 30-01-2019 15:02 by + selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) + # auto adjusted by site account profile + optional: true + filters: + - name: regexp + args: "Uploaded (.+?) by" + - name: dateparse + args: "02-01-2006 15:04" date_unix: # within the hour (unix) selector: abbr[data-time] attribute: data-time optional: true date: - 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 }}" + text: "{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}" size: selector: a[rel="torrent_size"] seeders: diff --git a/src/Jackett.Common/Definitions/empornium.yml b/src/Jackett.Common/Definitions/empornium.yml index bb5090c24..3b97c09af 100644 --- a/src/Jackett.Common/Definitions/empornium.yml +++ b/src/Jackett.Common/Definitions/empornium.yml @@ -141,11 +141,10 @@ search: date: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/empornium2fa.yml b/src/Jackett.Common/Definitions/empornium2fa.yml index 6706ac33c..4ad3e466f 100644 --- a/src/Jackett.Common/Definitions/empornium2fa.yml +++ b/src/Jackett.Common/Definitions/empornium2fa.yml @@ -136,11 +136,10 @@ search: date: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/extremlymtorrents.yml b/src/Jackett.Common/Definitions/extremlymtorrents.yml index 1452782c1..c29b7d8cd 100644 --- a/src/Jackett.Common/Definitions/extremlymtorrents.yml +++ b/src/Jackett.Common/Definitions/extremlymtorrents.yml @@ -151,11 +151,10 @@ search: args: "src=(.+?) " date: selector: td:nth-last-child(1) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02.01.200615:04:05 -07:00" + args: "02.01.200615:04:05" leechers: selector: td:nth-last-child(2) seeders: diff --git a/src/Jackett.Common/Definitions/falkonvisionteam.yml b/src/Jackett.Common/Definitions/falkonvisionteam.yml index 6db36a1c5..a2e8e353e 100644 --- a/src/Jackett.Common/Definitions/falkonvisionteam.yml +++ b/src/Jackett.Common/Definitions/falkonvisionteam.yml @@ -120,13 +120,12 @@ search: attribute: src date: selector: td:nth-child(2) + # auto adjusted by site account profile filters: - name: regexp args: "(\\d{2}-\\d{2}-\\d{2} \\d{2}:\\d{2})" - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-06 15:04 -07:00" + args: "02-01-06 15:04" size: selector: td:nth-last-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/fantastiko.yml b/src/Jackett.Common/Definitions/fantastiko.yml index 9945a090c..e56e68f4a 100644 --- a/src/Jackett.Common/Definitions/fantastiko.yml +++ b/src/Jackett.Common/Definitions/fantastiko.yml @@ -149,8 +149,9 @@ search: uploadvolumefactor: text: 1 date_day: - optional: true selector: td.torrent_name:contains("day"), td.torrent_name:contains("σήμερα"), td.torrent_name:contains("εχθές"), td.torrent_name:contains("Δευτέρα"), td.torrent_name:contains("Τρίτη"), td.torrent_name:contains("Τετάρτη"), td.torrent_name:contains("Πέμπτη"), td.torrent_name:contains("Παρασκευή"), td.torrent_name:contains("Σάββατο"), td.torrent_name:contains("Κυριακή") + # auto adjusted by site account profile + optional: true remove: span, a filters: - name: replace @@ -185,8 +186,9 @@ search: args: ["Κυριακή", "Sunday"] - name: fuzzytime date_year: - optional: true selector: td.torrent_name:contains("-") + # auto adjusted by site account profile + optional: true remove: span, a filters: - name: replace @@ -203,12 +205,10 @@ search: args: [" τον/την", ""] # him/her - name: replace args: ["στις ", ""] # at - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" minimumratio: text: 1.0 minimumseedtime: diff --git a/src/Jackett.Common/Definitions/femdomcult.yml b/src/Jackett.Common/Definitions/femdomcult.yml index fe9a68212..bd7f7fe68 100644 --- a/src/Jackett.Common/Definitions/femdomcult.yml +++ b/src/Jackett.Common/Definitions/femdomcult.yml @@ -119,12 +119,11 @@ search: date_optional: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" date: # some torrents have "Never" date text: "{{ if .Result.date_optional }}{{ .Result.date_optional }}{{ else }}20 years ago{{ end }}" size: diff --git a/src/Jackett.Common/Definitions/fenyarnyek-tracker.yml b/src/Jackett.Common/Definitions/fenyarnyek-tracker.yml index cf0e90f37..0e9dedb86 100644 --- a/src/Jackett.Common/Definitions/fenyarnyek-tracker.yml +++ b/src/Jackett.Common/Definitions/fenyarnyek-tracker.yml @@ -146,11 +146,10 @@ search: args: "src=(.+?) " date: selector: td:nth-last-child(11) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" size: selector: td:nth-last-child(5) seeders: diff --git a/src/Jackett.Common/Definitions/gaytorrentru.yml b/src/Jackett.Common/Definitions/gaytorrentru.yml index fa3c58e2a..29b1e74dc 100644 --- a/src/Jackett.Common/Definitions/gaytorrentru.yml +++ b/src/Jackett.Common/Definitions/gaytorrentru.yml @@ -167,13 +167,12 @@ search: selector: a[href$="&todlers=1"] date: selector: .tadded + # auto adjusted by site account profile filters: - name: re_replace args: ["(\\d{4}-\\d{2}-\\d{2})(\\d{2}:\\d{2}:\\d{2}).*", "$1 $2"] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-02 15:04:05 -07:00" + args: "2006-01-02 15:04:05" downloadvolumefactor: case: "td:nth-child(3) > div > nobr > font[color=\"yellow\"]": 0 diff --git a/src/Jackett.Common/Definitions/genesismovement.yml b/src/Jackett.Common/Definitions/genesismovement.yml index a084ff8f9..995586394 100644 --- a/src/Jackett.Common/Definitions/genesismovement.yml +++ b/src/Jackett.Common/Definitions/genesismovement.yml @@ -116,15 +116,14 @@ search: attribute: href date: selector: div[id^="kt"] > table > tbody > tr > td:contains("Date Added:") + # auto adjusted by site account profile filters: - name: regexp args: "(\\d{2}-\\d{2}-\\d{4} at \\d{2}:\\d{2}:\\d{2})" - name: replace args: [" at ", " "] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04:05 -07:00" + args: "02-01-2006 15:04:05" size: selector: td:nth-last-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/girotorrent.yml b/src/Jackett.Common/Definitions/girotorrent.yml index 7b2696a48..530bccecd 100644 --- a/src/Jackett.Common/Definitions/girotorrent.yml +++ b/src/Jackett.Common/Definitions/girotorrent.yml @@ -222,11 +222,10 @@ search: args: "src=(.+?) " date: selector: td:nth-last-child(9) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: td:nth-last-child(8) leechers: diff --git a/src/Jackett.Common/Definitions/greekdiamond.yml b/src/Jackett.Common/Definitions/greekdiamond.yml index 3fcbde447..d11db4d72 100644 --- a/src/Jackett.Common/Definitions/greekdiamond.yml +++ b/src/Jackett.Common/Definitions/greekdiamond.yml @@ -155,11 +155,10 @@ search: # some users will have an extra wait time column before the bookmark column, so we count up from the bottom date: selector: td:nth-last-of-type(12) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: td:nth-last-of-type(10) leechers: diff --git a/src/Jackett.Common/Definitions/happyfappy.yml b/src/Jackett.Common/Definitions/happyfappy.yml index b73043cd3..3e29aab4c 100644 --- a/src/Jackett.Common/Definitions/happyfappy.yml +++ b/src/Jackett.Common/Definitions/happyfappy.yml @@ -106,11 +106,10 @@ search: date: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/hdcztorrent.yml b/src/Jackett.Common/Definitions/hdcztorrent.yml index 5208e3e29..4bc53bbca 100644 --- a/src/Jackett.Common/Definitions/hdcztorrent.yml +++ b/src/Jackett.Common/Definitions/hdcztorrent.yml @@ -157,11 +157,10 @@ search: args: "src=(.+?) " date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" size: selector: td:nth-child(11) seeders: diff --git a/src/Jackett.Common/Definitions/hdmonkey.yml b/src/Jackett.Common/Definitions/hdmonkey.yml index a095edeee..432c2a2d8 100644 --- a/src/Jackett.Common/Definitions/hdmonkey.yml +++ b/src/Jackett.Common/Definitions/hdmonkey.yml @@ -135,11 +135,10 @@ search: date: # 15.11.21
07:47 selector: td:nth-child(5) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2.01.0615:04 -07:00" + args: "2.01.0615:04" grabs: selector: td:nth-child(7) seeders: diff --git a/src/Jackett.Common/Definitions/hdturk.yml b/src/Jackett.Common/Definitions/hdturk.yml index b0758089e..15c7a26f2 100644 --- a/src/Jackett.Common/Definitions/hdturk.yml +++ b/src/Jackett.Common/Definitions/hdturk.yml @@ -154,11 +154,10 @@ search: attribute: src date: selector: td:nth-child(2) > div:nth-last-child(1) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" download: selector: div[id^="port-target-"] a attribute: href diff --git a/src/Jackett.Common/Definitions/ilcorsaroblu.yml b/src/Jackett.Common/Definitions/ilcorsaroblu.yml index 34f5474a7..6f6c97ce8 100644 --- a/src/Jackett.Common/Definitions/ilcorsaroblu.yml +++ b/src/Jackett.Common/Definitions/ilcorsaroblu.yml @@ -232,19 +232,19 @@ search: selector: td:nth-last-child(2) date_ago: selector: td:nth-last-child(7):contains('ago') + # auto adjusted by site account profile optional: true filters: - name: timeago date_year: selector: td:nth-last-child(7):contains('/') + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" date: - text: "{{ if or .Result.date_year .Result.date_ago }}{{ or .Result.date_year .Result.date_ago }}{{ else }}now{{ end }}" + text: "{{ if or .Result.date_ago .Result.date_year }}{{ or .Result.date_ago .Result.date_year }}{{ else }}now{{ end }}" grabs: selector: td:nth-last-child(4) seeders: diff --git a/src/Jackett.Common/Definitions/jpopsuki.yml b/src/Jackett.Common/Definitions/jpopsuki.yml index a25bf74ee..dadc6575c 100644 --- a/src/Jackett.Common/Definitions/jpopsuki.yml +++ b/src/Jackett.Common/Definitions/jpopsuki.yml @@ -128,11 +128,10 @@ search: date: selector: td:nth-last-child(5) attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-last-child(4) grabs: diff --git a/src/Jackett.Common/Definitions/kinozal.yml b/src/Jackett.Common/Definitions/kinozal.yml index a4c6aa2d9..90d1b7c4e 100644 --- a/src/Jackett.Common/Definitions/kinozal.yml +++ b/src/Jackett.Common/Definitions/kinozal.yml @@ -271,6 +271,7 @@ search: # Today 09:10 # Yesterday 13:04 selector: td:nth-child(7):not(:contains(".")) + # auto adjusted by site account profile optional: true filters: - name: replace @@ -284,16 +285,15 @@ search: date_year: # 24.10.2017 at 23:44 selector: td:nth-child(7):contains(".") + # auto adjusted by site account profile optional: true filters: - name: replace args: [" в", ""] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02.01.2006 15:04 -07:00" + args: "02.01.2006 15:04" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" downloadvolumefactor: case: a.r1: 0 # gold diff --git a/src/Jackett.Common/Definitions/krazyzone.yml b/src/Jackett.Common/Definitions/krazyzone.yml index 08f1de45e..5dbffdd87 100644 --- a/src/Jackett.Common/Definitions/krazyzone.yml +++ b/src/Jackett.Common/Definitions/krazyzone.yml @@ -182,11 +182,10 @@ search: date: # 24.Jul
2022
07:47 selector: td:nth-child(5) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2.Jan200615:04 -07:00" + args: "2.Jan200615:04" seeders: selector: td:nth-child(7) leechers: diff --git a/src/Jackett.Common/Definitions/kufirc.yml b/src/Jackett.Common/Definitions/kufirc.yml index 90e220f68..4239e2e3d 100644 --- a/src/Jackett.Common/Definitions/kufirc.yml +++ b/src/Jackett.Common/Definitions/kufirc.yml @@ -167,11 +167,10 @@ search: date: selector: td:nth-child(5) > span attribute: title + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" size: selector: td:nth-child(6) grabs: diff --git a/src/Jackett.Common/Definitions/lastfiles.yml b/src/Jackett.Common/Definitions/lastfiles.yml index 28cebac30..bdc19d9a2 100644 --- a/src/Jackett.Common/Definitions/lastfiles.yml +++ b/src/Jackett.Common/Definitions/lastfiles.yml @@ -169,23 +169,21 @@ search: download: selector: a[href^="download.php"] attribute: href - date_year: - selector: td:nth-child(4) span:not(:contains("day")) - optional: true - filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" date_day: selector: td:nth-child(4) span:contains("day") + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: fuzzytime + date_year: + selector: td:nth-child(4) span:not(:contains("day")) + # auto adjusted by site account profile + optional: true + filters: + - name: dateparse + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/learnbits.yml b/src/Jackett.Common/Definitions/learnbits.yml index 19df9bba1..18d79f0e3 100644 --- a/src/Jackett.Common/Definitions/learnbits.yml +++ b/src/Jackett.Common/Definitions/learnbits.yml @@ -191,24 +191,22 @@ search: remove: b date_day: selector: td:nth-child(2):contains("day ") + # auto adjusted by site account profile optional: true remove: a, b, img, span filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: fuzzytime date_year: # 2021-07-16 09:30 PM selector: td:nth-child(2):not(:contains("day ")) + # auto adjusted by site account profile optional: true remove: a, b, img, span filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-02 03:04 PM -07:00" + args: "2006-01-02 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" minimumratio: text: 1.0 # TS Special Edition diff --git a/src/Jackett.Common/Definitions/learnflakes.yml b/src/Jackett.Common/Definitions/learnflakes.yml index 8a7910c19..fe33f9986 100644 --- a/src/Jackett.Common/Definitions/learnflakes.yml +++ b/src/Jackett.Common/Definitions/learnflakes.yml @@ -150,31 +150,29 @@ search: selector: a[rel="torrent_seeders"] leechers: selector: a[rel="torrent_leechers"] - date_time: - selector: div.torrentOwner abbr - optional: true - attribute: data-time date_day: selector: div.torrentOwner:contains("day") + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Uploaded (.+?) by" - - name: append - args: " +00:00" # auto adjusted by site account profile - name: fuzzytime date_year: selector: div.torrentOwner:contains("-") + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Uploaded (.+?) by" - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" + date_unix: + selector: div.torrentOwner abbr + optional: true + attribute: data-time date: - text: "{{ if or .Result.date_time .Result.date_year .Result.date_day }}{{ or .Result.date_time .Result.date_year .Result.date_day }}{{ else }}now{{ end }}" + text: "{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}" downloadvolumefactor: case: img[src$="/torrent_free.png"]: 0 diff --git a/src/Jackett.Common/Definitions/magicheaven.yml b/src/Jackett.Common/Definitions/magicheaven.yml index b4122e6c0..1af3883e4 100644 --- a/src/Jackett.Common/Definitions/magicheaven.yml +++ b/src/Jackett.Common/Definitions/magicheaven.yml @@ -171,13 +171,12 @@ search: attribute: src date: selector: td:nth-child(2) > div:last-child + # auto adjusted by site account profile filters: - name: regexp args: (\d{2}-\d{2}-\d{4} \d{2}:\d{2}) - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" size: selector: td:nth-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/magico.yml b/src/Jackett.Common/Definitions/magico.yml index facab190f..70de1ef8c 100644 --- a/src/Jackett.Common/Definitions/magico.yml +++ b/src/Jackett.Common/Definitions/magico.yml @@ -206,14 +206,11 @@ search: uploadvolumefactor: case: "*": 1 - date_unix: - optional: true - selector: div.torrentOwner > abbr.timeago - attribute: data-time date_day: # Uploaded Yesterday at 20:12 by - optional: true selector: div.torrentOwner:not(:has(abbr.timeago)):contains("day"), div.torrentOwner:not(:has(abbr.timeago)):contains("σήμερα"), div.torrentOwner:not(:has(abbr.timeago)):contains("εχθές"), div.torrentOwner:not(:has(abbr.timeago)):contains("Δευτέρα"), div.torrentOwner:not(:has(abbr.timeago)):contains("Τρίτη"), div.torrentOwner:not(:has(abbr.timeago)):contains("Τετάρτη"), div.torrentOwner:not(:has(abbr.timeago)):contains("Πέμπτη"), div.torrentOwner:not(:has(abbr.timeago)):contains("Παρασκευή"), div.torrentOwner:not(:has(abbr.timeago)):contains("Σάββατο"), div.torrentOwner:not(:has(abbr.timeago)):contains("Κυριακή") + # auto adjusted by site account profile + optional: true remove: span filters: - name: replace @@ -249,8 +246,9 @@ search: - name: fuzzytime date_year: # 23-10-2021 22:59 - optional: true selector: div.torrentOwner:not(:has(abbr.timeago)):contains("-") + # auto adjusted by site account profile + optional: true remove: span filters: - name: replace @@ -267,13 +265,12 @@ search: args: [" τον/την", ""] # him/her - name: replace args: ["στις ", ""] # at - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" date_other: - optional: true selector: td.torrent_name + # auto adjusted by site account profile + optional: true remove: div, a, span filters: - name: replace @@ -282,10 +279,12 @@ search: args: [" by", ""] - name: replace args: ["at ", ""] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" + date_unix: + selector: div.torrentOwner > abbr.timeago + attribute: data-time + optional: true date: - text: "{{ if or .Result.date_unix .Result.date_day .Result.date_year .Result.date_other }}{{ or .Result.date_unix .Result.date_day .Result.date_year .Result.date_other }}{{ else }}now{{ end }}" + text: "{{ if or .Result.date_day .Result.date_year .Result.date_other .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_other .Result.date_unix }}{{ else }}now{{ end }}" # TSUE 2.2 diff --git a/src/Jackett.Common/Definitions/mojblink.yml b/src/Jackett.Common/Definitions/mojblink.yml index 2efff4949..dfc4a50f0 100644 --- a/src/Jackett.Common/Definitions/mojblink.yml +++ b/src/Jackett.Common/Definitions/mojblink.yml @@ -180,6 +180,7 @@ search: # Naložen: Danes, 06:46:17 # Uploaded: Danes, 06:46:17 selector: div.release-info__meta:contains("Naložen:"):contains("Včeraj"), div.release-info__meta:contains("Naložen:"):contains("Danes"), div.release-info__meta:contains("Uploaded:"):contains("Včeraj"), div.release-info__meta:contains("Uploaded:"):contains("Danes") + # auto adjusted by site account profile optional: true filters: - name: replace @@ -195,18 +196,17 @@ search: # Uploaded: 15.11.2022 07:24:18 # Naložen: 15.11.2022 07:24:18 selector: div.release-info__meta:contains("Naložen:"):contains("."), div.release-info__meta:contains("Uploaded:"):contains(".") + # auto adjusted by site account profile optional: true filters: - name: replace args: ["Uploaded: ", ""] - name: replace args: ["Naložen: ", ""] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02.01.2006 15:04:05 -07:00" + args: "02.01.2006 15:04:05" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: a[href^="/download/"] seeders: diff --git a/src/Jackett.Common/Definitions/mousebits.yml b/src/Jackett.Common/Definitions/mousebits.yml index f5eaefb3d..906945745 100644 --- a/src/Jackett.Common/Definitions/mousebits.yml +++ b/src/Jackett.Common/Definitions/mousebits.yml @@ -117,11 +117,10 @@ search: text: "512 MB" date: selector: td:nth-child(4) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: td:nth-child(5) leechers: diff --git a/src/Jackett.Common/Definitions/p2pbg.yml b/src/Jackett.Common/Definitions/p2pbg.yml index a7452d35b..87d81e8bf 100644 --- a/src/Jackett.Common/Definitions/p2pbg.yml +++ b/src/Jackett.Common/Definitions/p2pbg.yml @@ -171,6 +171,7 @@ search: # Yesterday # Вчера selector: td:nth-last-child(5):not(:contains("/")) + # auto adjusted by site account profile optional: true filters: - name: re_replace @@ -182,14 +183,13 @@ search: date_year: # 14/03/2019 selector: td:nth-last-child(5):contains("/") + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(4) seeders: diff --git a/src/Jackett.Common/Definitions/p2pelite.yml b/src/Jackett.Common/Definitions/p2pelite.yml index d4b34785c..c45cf0d3b 100644 --- a/src/Jackett.Common/Definitions/p2pelite.yml +++ b/src/Jackett.Common/Definitions/p2pelite.yml @@ -143,17 +143,17 @@ search: selector: td:nth-last-child(8) date_day: selector: td:nth-last-child(6):contains("day") + # auto adjusted by site account profile optional: true date_year: selector: td:nth-last-child(6):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/peeratiko.yml b/src/Jackett.Common/Definitions/peeratiko.yml index be6ffa870..b6971a05c 100644 --- a/src/Jackett.Common/Definitions/peeratiko.yml +++ b/src/Jackett.Common/Definitions/peeratiko.yml @@ -171,22 +171,19 @@ search: date_day: # Today
08:10 AM # Yesterday
06:44 PM - optional: true selector: td:nth-last-child(6):contains("day") - filters: - - name: append - args: " +00:00" # auto adjusted by site account profile + # auto adjusted by site account profile + optional: true date_year: # Dec 4 2021
10:20 AM - optional: true selector: td:nth-last-child(6):not(:contains("day")) + # auto adjusted by site account profile + optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/peersfm.yml b/src/Jackett.Common/Definitions/peersfm.yml index 205e16886..77dfc1e9a 100644 --- a/src/Jackett.Common/Definitions/peersfm.yml +++ b/src/Jackett.Common/Definitions/peersfm.yml @@ -114,6 +114,7 @@ search: selector: td:nth-child(6) date: selector: td:nth-child(5) + # auto adjusted by site account profile filters: # replace month abbreviations - name: replace @@ -140,10 +141,8 @@ search: args: ["ноя", "Nov"] - name: replace args: ["дек", "Dec"] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "15:04:0502 Jan 2006 -07:00" + args: "15:04:0502 Jan 2006" seeders: selector: td:nth-child(8) leechers: diff --git a/src/Jackett.Common/Definitions/pixelcove.yml b/src/Jackett.Common/Definitions/pixelcove.yml index 52dde1576..9d25483ae 100644 --- a/src/Jackett.Common/Definitions/pixelcove.yml +++ b/src/Jackett.Common/Definitions/pixelcove.yml @@ -154,22 +154,20 @@ search: date_elapsed: # Oct 01 2022, 18:41 selector: td:nth-child(5) > span:not(:contains("ago")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" date_added: # 13 hours ago selector: td:nth-child(5) > span:contains("ago") attribute: title + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" date: text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}" size: diff --git a/src/Jackett.Common/Definitions/pixelcove2fa.yml b/src/Jackett.Common/Definitions/pixelcove2fa.yml index 1f93622a4..09e0ef9a3 100644 --- a/src/Jackett.Common/Definitions/pixelcove2fa.yml +++ b/src/Jackett.Common/Definitions/pixelcove2fa.yml @@ -149,22 +149,20 @@ search: date_elapsed: # Oct 01 2022, 18:41 selector: td:nth-child(5) > span:not(:contains("ago")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" date_added: # 13 hours ago selector: td:nth-child(5) > span:contains("ago") attribute: title + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 02 2006, 15:04 -07:00" + args: "Jan 02 2006, 15:04" date: text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}" size: diff --git a/src/Jackett.Common/Definitions/polishsource.yml b/src/Jackett.Common/Definitions/polishsource.yml index 300084a15..6e87df65a 100644 --- a/src/Jackett.Common/Definitions/polishsource.yml +++ b/src/Jackett.Common/Definitions/polishsource.yml @@ -154,11 +154,10 @@ search: selector: a[href*="imdb.com/title/tt"] date: selector: td:nth-child(4) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/rainbowtracker.yml b/src/Jackett.Common/Definitions/rainbowtracker.yml index 6ecffc4e4..43ce0dfe9 100644 --- a/src/Jackett.Common/Definitions/rainbowtracker.yml +++ b/src/Jackett.Common/Definitions/rainbowtracker.yml @@ -202,6 +202,7 @@ search: args: "(\\d{1,2}-\\w{3,4}-\\d{2})" date: text: "{{ .Result.date_time }} {{ .Result.date_date }}" + # auto adjusted by site account profile filters: - name: replace args: ["Янв", "Jan"] @@ -227,10 +228,8 @@ search: args: ["Ноя", "Nov"] - name: replace args: ["Дек", "Dec"] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "15:04 2-Jan-06 -07:00" + args: "15:04 2-Jan-06" downloadvolumefactor: case: img[src="images/tor_gold.gif"]: 0 diff --git a/src/Jackett.Common/Definitions/redstartorrent.yml b/src/Jackett.Common/Definitions/redstartorrent.yml index e3d6079ec..52dd471c5 100644 --- a/src/Jackett.Common/Definitions/redstartorrent.yml +++ b/src/Jackett.Common/Definitions/redstartorrent.yml @@ -94,11 +94,10 @@ search: attribute: href date: selector: td:nth-child(5) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" grabs: selector: td:nth-child(7) size: diff --git a/src/Jackett.Common/Definitions/resurrectthenet.yml b/src/Jackett.Common/Definitions/resurrectthenet.yml index 9565f6924..bc76c90bf 100644 --- a/src/Jackett.Common/Definitions/resurrectthenet.yml +++ b/src/Jackett.Common/Definitions/resurrectthenet.yml @@ -136,11 +136,10 @@ search: args: "src=(.*?) " date: selector: td:nth-last-child(5) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "15:04:05 02/01/2006 -07:00" + args: "15:04:05 02/01/2006" seeders: selector: td:nth-last-child(4) leechers: diff --git a/src/Jackett.Common/Definitions/riperam.yml b/src/Jackett.Common/Definitions/riperam.yml index e44272efb..9fdd0ae29 100644 --- a/src/Jackett.Common/Definitions/riperam.yml +++ b/src/Jackett.Common/Definitions/riperam.yml @@ -955,11 +955,10 @@ search: date: # 12 янв 2019, 11:26 selector: dt + # auto adjusted by site account profile filters: - # extract the date - name: regexp args: "(\\d{2} \\D{3} \\d{4}, \\d{2}:\\d{2})" - # replace month abbreviations - name: replace args: ["янв", "Jan"] - name: replace @@ -984,10 +983,8 @@ search: args: ["ноя", "Nov"] - name: replace args: ["дек", "Dec"] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02 Jan 2006, 15:04 -07:00" + args: "02 Jan 2006, 15:04" downloadvolumefactor: text: 0 uploadvolumefactor: diff --git a/src/Jackett.Common/Definitions/rockbox.yml b/src/Jackett.Common/Definitions/rockbox.yml index dcea646a1..2c9ce0121 100644 --- a/src/Jackett.Common/Definitions/rockbox.yml +++ b/src/Jackett.Common/Definitions/rockbox.yml @@ -83,15 +83,17 @@ search: date_year: # 13/10/2018 selector: td:nth-child(6):contains("/") + # auto adjusted by site account profile optional: true filters: - name: append - args: " +00:00" # auto adjusted by site account profile + args: " +00:00" - name: dateparse args: "02/01/2006 -07:00" date_ago: # 1 hour ago, 2 days ago, 3 weeks ago etc selector: td:nth-child(6):not(:contains("/")) + # auto adjusted by site account profile optional: true filters: - name: timeago diff --git a/src/Jackett.Common/Definitions/scenepalace.yml b/src/Jackett.Common/Definitions/scenepalace.yml index 6d54a8645..c24a78a49 100644 --- a/src/Jackett.Common/Definitions/scenepalace.yml +++ b/src/Jackett.Common/Definitions/scenepalace.yml @@ -121,17 +121,17 @@ search: selector: td:nth-last-child(8) date_day: selector: td:nth-last-child(6):contains("day") + # auto adjusted by site account profile optional: true date_year: selector: td:nth-last-child(6):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/sktorrent.yml b/src/Jackett.Common/Definitions/sktorrent.yml index 5022dbc6c..f0c70f8ad 100644 --- a/src/Jackett.Common/Definitions/sktorrent.yml +++ b/src/Jackett.Common/Definitions/sktorrent.yml @@ -203,13 +203,12 @@ search: args: "Velkost (.+?) \\|" date: selector: div > div + # auto adjusted by site account profile filters: - name: regexp args: "Pridany (\\d{2}/\\d{2}/\\d{4})" - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: div > div filters: diff --git a/src/Jackett.Common/Definitions/sportscult.yml b/src/Jackett.Common/Definitions/sportscult.yml index 9d1530216..317227f11 100644 --- a/src/Jackett.Common/Definitions/sportscult.yml +++ b/src/Jackett.Common/Definitions/sportscult.yml @@ -157,11 +157,10 @@ search: selector: td:nth-child(8) date: selector: td:nth-child(5) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" downloadvolumefactor: case: img[src="gold/gold.gif"]: 0 diff --git a/src/Jackett.Common/Definitions/tasmanit.yml b/src/Jackett.Common/Definitions/tasmanit.yml index 479868724..19375f335 100644 --- a/src/Jackett.Common/Definitions/tasmanit.yml +++ b/src/Jackett.Common/Definitions/tasmanit.yml @@ -148,11 +148,10 @@ search: selector: td:nth-child(8) date: selector: td:nth-child(2) > div:last-child + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" downloadvolumefactor: case: img[src$="/freedownload.gif"]: 0 diff --git a/src/Jackett.Common/Definitions/teamhd.yml b/src/Jackett.Common/Definitions/teamhd.yml index 318589bb5..037d7f3c1 100644 --- a/src/Jackett.Common/Definitions/teamhd.yml +++ b/src/Jackett.Common/Definitions/teamhd.yml @@ -118,11 +118,10 @@ search: args: (\d+) date: selector: td > div > small + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02-01-2006 15:04 -07:00" + args: "02-01-2006 15:04" seeders: selector: td:nth-child(4) filters: diff --git a/src/Jackett.Common/Definitions/theempire.yml b/src/Jackett.Common/Definitions/theempire.yml index 6a4f43af7..d765d7dd4 100644 --- a/src/Jackett.Common/Definitions/theempire.yml +++ b/src/Jackett.Common/Definitions/theempire.yml @@ -137,11 +137,10 @@ search: selector: td:nth-child(10) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" downloadvolumefactor: case: "font[color=\"green\"]": 0 diff --git a/src/Jackett.Common/Definitions/thegeeks.yml b/src/Jackett.Common/Definitions/thegeeks.yml index c0df394d1..51a5527f6 100644 --- a/src/Jackett.Common/Definitions/thegeeks.yml +++ b/src/Jackett.Common/Definitions/thegeeks.yml @@ -168,11 +168,10 @@ search: selector: td:nth-child(4) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(7) grabs: diff --git a/src/Jackett.Common/Definitions/theleachzone.yml b/src/Jackett.Common/Definitions/theleachzone.yml index 3ed50150d..07fecfe23 100644 --- a/src/Jackett.Common/Definitions/theleachzone.yml +++ b/src/Jackett.Common/Definitions/theleachzone.yml @@ -148,19 +148,19 @@ search: selector: td:nth-child(5) date_day: selector: td:nth-child(7):contains("day") + # auto adjusted by site account profile optional: true filters: - name: fuzzytime date_year: selector: td:nth-child(7):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-child(8) grabs: diff --git a/src/Jackett.Common/Definitions/themixingbowl.yml b/src/Jackett.Common/Definitions/themixingbowl.yml index 3967e7609..a294fe7b1 100644 --- a/src/Jackett.Common/Definitions/themixingbowl.yml +++ b/src/Jackett.Common/Definitions/themixingbowl.yml @@ -126,13 +126,12 @@ search: selector: td:nth-child(10) date: selector: td:nth-child(12) + # auto adjusted by site account profile filters: - name: replace args: ["at", ""] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2 Jan 2006 15:04 -07:00" + args: "2 Jan 2006 15:04" downloadvolumefactor: case: "img[src$=\"freeleech.png\"]": 0 diff --git a/src/Jackett.Common/Definitions/theoccult.yml b/src/Jackett.Common/Definitions/theoccult.yml index 494d35da2..983779c39 100644 --- a/src/Jackett.Common/Definitions/theoccult.yml +++ b/src/Jackett.Common/Definitions/theoccult.yml @@ -143,11 +143,10 @@ search: selector: td:nth-child(4) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(7) grabs: diff --git a/src/Jackett.Common/Definitions/theplace.yml b/src/Jackett.Common/Definitions/theplace.yml index e3e536fac..04b0a2522 100644 --- a/src/Jackett.Common/Definitions/theplace.yml +++ b/src/Jackett.Common/Definitions/theplace.yml @@ -124,11 +124,10 @@ search: selector: td:nth-child(4) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(7) grabs: diff --git a/src/Jackett.Common/Definitions/thesceneplace.yml b/src/Jackett.Common/Definitions/thesceneplace.yml index 9ae38630d..04ecc1e2b 100644 --- a/src/Jackett.Common/Definitions/thesceneplace.yml +++ b/src/Jackett.Common/Definitions/thesceneplace.yml @@ -137,11 +137,10 @@ search: optional: true date: selector: td:has(a[href^="download.php?id="]) ~ td + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02/01/2006 -07:00" + args: "02/01/2006" seeders: selector: td:has(a[href^="download.php?id="]) ~ td ~ td leechers: diff --git a/src/Jackett.Common/Definitions/theshow.yml b/src/Jackett.Common/Definitions/theshow.yml index 83b7dee3b..84e9aa0c1 100644 --- a/src/Jackett.Common/Definitions/theshow.yml +++ b/src/Jackett.Common/Definitions/theshow.yml @@ -144,11 +144,10 @@ search: selector: td:nth-child(4) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(7) grabs: diff --git a/src/Jackett.Common/Definitions/thevault.yml b/src/Jackett.Common/Definitions/thevault.yml index 99526d9bd..a0be9102d 100644 --- a/src/Jackett.Common/Definitions/thevault.yml +++ b/src/Jackett.Common/Definitions/thevault.yml @@ -142,11 +142,10 @@ search: selector: td:nth-child(4) date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(7) grabs: diff --git a/src/Jackett.Common/Definitions/torrent-turk.yml b/src/Jackett.Common/Definitions/torrent-turk.yml index b24933617..5be25ccd6 100644 --- a/src/Jackett.Common/Definitions/torrent-turk.yml +++ b/src/Jackett.Common/Definitions/torrent-turk.yml @@ -158,34 +158,34 @@ search: download: selector: a[href*="?p=torrents&pid=10&action=download"] attribute: href - date_year: - # Uploaded 30-01-2019 15:02 by - selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) - optional: true - filters: - - name: regexp - args: "Uploaded (.+?) by" - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "02-01-2006 15:04 -07:00" date_day: # Uploaded Friday at 05:11 by # Uploaded Today at 00:48 by # Uploaded Yesterday at 23:57 by selector: td.torrent_name:contains(" at "):not(:has(abbr[data-time])) + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Uploaded (.+?) by" - name: fuzzytime + date_year: + # Uploaded 30-01-2019 15:02 by + selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) + # auto adjusted by site account profile + optional: true + filters: + - name: regexp + args: "Uploaded (.+?) by" + - name: dateparse + args: "02-01-2006 15:04" date_unix: # within the hour (unix) selector: abbr[data-time] attribute: data-time optional: true date: - 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 }}" + text: "{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}" size: selector: a[rel="torrent_size"] seeders: diff --git a/src/Jackett.Common/Definitions/torrenthr.yml b/src/Jackett.Common/Definitions/torrenthr.yml index 83616a972..d23e9b634 100644 --- a/src/Jackett.Common/Definitions/torrenthr.yml +++ b/src/Jackett.Common/Definitions/torrenthr.yml @@ -118,13 +118,12 @@ search: text: 1 date: selector: td:nth-child(2) > small + # auto adjusted by site account profile filters: - name: replace args: [" u ", " "] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "02.01.2006 15:04:05 -07:00" + args: "02.01.2006 15:04:05" description: selector: td:nth-child(2) remove: a, br, small diff --git a/src/Jackett.Common/Definitions/torrentleech-pl.yml b/src/Jackett.Common/Definitions/torrentleech-pl.yml index 2c1f9292f..31c2490c7 100644 --- a/src/Jackett.Common/Definitions/torrentleech-pl.yml +++ b/src/Jackett.Common/Definitions/torrentleech-pl.yml @@ -141,11 +141,10 @@ search: text: "{{ .Result._language }}{{ .Result._subbed }}{{ if .Result.genre }}Genres: {{ .Result.genre }}{{ else }}{{ end }}" date: selector: td:nth-child(4) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/torrentleech.yml b/src/Jackett.Common/Definitions/torrentleech.yml index 38a069d66..c6b64c7fe 100644 --- a/src/Jackett.Common/Definitions/torrentleech.yml +++ b/src/Jackett.Common/Definitions/torrentleech.yml @@ -168,8 +168,9 @@ search: grabs: selector: completed date: - # 2021-10-25 02:18:31 (auto adjusted by site account profile) + # 2021-10-25 02:18:31 selector: addedTimestamp + # auto adjusted by site account profile filters: - name: dateparse args: "2006-01-02 15:04:05" diff --git a/src/Jackett.Common/Definitions/totallykids.yml b/src/Jackett.Common/Definitions/totallykids.yml index 17491f93f..e21cb4e4b 100644 --- a/src/Jackett.Common/Definitions/totallykids.yml +++ b/src/Jackett.Common/Definitions/totallykids.yml @@ -122,25 +122,23 @@ search: date_day: # Yesterday at 10:03:30 PM selector: td:nth-child(5):contains("day") + # auto adjusted by site account profile optional: true filters: - name: re_replace args: ["[ ]at|[\\s+]|[//\xa0],\\/g", " "] - - name: append - args: " +00:00" # auto adjusted by site account profile date_year: # February 09, 2019, 06:35:08 AM selector: td:nth-child(5):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - name: re_replace args: ["[,]|[\\s+]|[//\xa0],\\/g", " "] - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "January 02 2006 03:04:05 PM -07:00" + args: "January 02 2006 03:04:05 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" seeders: selector: td:nth-child(6) leechers: diff --git a/src/Jackett.Common/Definitions/trancetraffic.yml b/src/Jackett.Common/Definitions/trancetraffic.yml index f27fd2227..40055ccca 100644 --- a/src/Jackett.Common/Definitions/trancetraffic.yml +++ b/src/Jackett.Common/Definitions/trancetraffic.yml @@ -49,11 +49,10 @@ search: attribute: href date: selector: td:nth-child(6) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" seeders: selector: td:nth-child(9) leechers: diff --git a/src/Jackett.Common/Definitions/turkseed.yml b/src/Jackett.Common/Definitions/turkseed.yml index 8fb165029..136e7a643 100644 --- a/src/Jackett.Common/Definitions/turkseed.yml +++ b/src/Jackett.Common/Definitions/turkseed.yml @@ -127,11 +127,10 @@ search: attribute: src date: selector: td:nth-child(2) + # auto adjusted by site account profile filters: - name: regexp args: "(\\d{1,2}(st|nd|rd|th) [A-Za-z]{3,} \\d{4} \\d{2}:\\d{2}:\\d{2})" - - name: append - args: " +00:00" # auto adjusted by site account profile - name: fuzzytime size: selector: td:nth-last-child(5) diff --git a/src/Jackett.Common/Definitions/turktorrent.yml b/src/Jackett.Common/Definitions/turktorrent.yml index fbf355d7a..ee8771b75 100644 --- a/src/Jackett.Common/Definitions/turktorrent.yml +++ b/src/Jackett.Common/Definitions/turktorrent.yml @@ -138,34 +138,34 @@ search: details: selector: a[href*="?p=torrents&pid=10&action=details"] attribute: href - date_year: - # Uploaded 30-01-2019 15:02 by - selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) - optional: true - filters: - - name: regexp - args: "Uploaded (.+?) by" - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "02-01-2006 15:04 -07:00" date_day: # Uploaded Friday at 05:11 by # Uploaded Today at 00:48 by # Uploaded Yesterday at 23:57 by selector: td.torrent_name:contains(" at "):not(:has(abbr[data-time])) + # auto adjusted by site account profile optional: true filters: - name: regexp args: "Uploaded (.+?) by" - name: fuzzytime + date_year: + # Uploaded 30-01-2019 15:02 by + selector: td.torrent_name:not(:contains(" at ")):not(:has(abbr[data-time])) + # auto adjusted by site account profile + optional: true + filters: + - name: regexp + args: "Uploaded (.+?) by" + - name: dateparse + args: "02-01-2006 15:04" date_unix: # within the hour (unix) selector: abbr[data-time] attribute: data-time optional: true date: - 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 }}" + text: "{{ if or .Result.date_day .Result.date_year .Result.date_unix }}{{ or .Result.date_day .Result.date_year .Result.date_unix }}{{ else }}now{{ end }}" download: selector: a[href*="?p=torrents&pid=10&action=download"] attribute: href diff --git a/src/Jackett.Common/Definitions/twilight.yml b/src/Jackett.Common/Definitions/twilight.yml index 097c7511b..6b6959008 100644 --- a/src/Jackett.Common/Definitions/twilight.yml +++ b/src/Jackett.Common/Definitions/twilight.yml @@ -123,17 +123,17 @@ search: selector: td:nth-of-type(6) date_day: selector: td:nth-of-type(8):contains("day") + # auto adjusted by site account profile optional: true date_year: selector: td:nth-of-type(8):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-of-type(9) grabs: diff --git a/src/Jackett.Common/Definitions/twilightszoom.yml b/src/Jackett.Common/Definitions/twilightszoom.yml index a6b01580d..7d595fe19 100644 --- a/src/Jackett.Common/Definitions/twilightszoom.yml +++ b/src/Jackett.Common/Definitions/twilightszoom.yml @@ -171,17 +171,17 @@ search: selector: td:nth-last-child(8) date_day: selector: td:nth-last-child(6):contains("day") + # auto adjusted by site account profile optional: true date_year: selector: td:nth-last-child(6):not(:contains("day")) + # auto adjusted by site account profile optional: true filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" 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_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" size: selector: td:nth-last-child(5) grabs: diff --git a/src/Jackett.Common/Definitions/wdt.yml b/src/Jackett.Common/Definitions/wdt.yml index c8f93efd7..8d7f9a438 100644 --- a/src/Jackett.Common/Definitions/wdt.yml +++ b/src/Jackett.Common/Definitions/wdt.yml @@ -155,11 +155,10 @@ search: selector: td:nth-child(5) date: selector: td:nth-child(7) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "Jan 2 2006 03:04 PM -07:00" + args: "Jan 2 2006 03:04 PM" size: selector: td:nth-child(8) grabs: diff --git a/src/Jackett.Common/Definitions/zomb.yml b/src/Jackett.Common/Definitions/zomb.yml index 20daed2b8..ff2ccee05 100644 --- a/src/Jackett.Common/Definitions/zomb.yml +++ b/src/Jackett.Common/Definitions/zomb.yml @@ -105,11 +105,10 @@ search: selector: td:nth-child(5) date: selector: td:nth-child(7) + # auto adjusted by site account profile filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - name: dateparse - args: "2006-01-0215:04:05 -07:00" + args: "2006-01-0215:04:05" size: selector: td:nth-child(8) grabs: