torrentdownload: switch to .today.year for keywordless search. resolves #6451

This commit is contained in:
Garfield69
2023-12-21 20:24:39 +13:00
parent 5f9e4139d7
commit 1ff1f113fe

View File

@@ -1,7 +1,7 @@
--- ---
id: torrentdownload id: torrentdownload
name: TorrentDownload name: TorrentDownload
description: "TorrentDownload is a Public general torrent index" description: "TorrentDownload is a Public torrent meta-search engine"
language: en-US language: en-US
type: public type: public
encoding: UTF-8 encoding: UTF-8
@@ -124,7 +124,7 @@ download:
search: search:
paths: paths:
- path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{ else }}/{{ end }}" - path: "search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
rows: rows:
selector: table.table2 > tbody > tr:has(span.smallish) selector: table.table2 > tbody > tr:has(span.smallish)