firebit: single search path, year for keywordless

Previously we were using dedicated movie and TV pages for keywordless searches, but the layout changed and we switched to searching for the keywords `фильм` and `сериал`, which only return results from 2010-2015.
This commit is contained in:
ilike2burnthing
2022-11-05 22:56:25 +00:00
committed by GitHub
parent a560c092b0
commit 24a36bc939

View File

@@ -5,7 +5,6 @@ description: "FireBit is an UKRAINIAN / RUSSIAN Public Torrent Tracker for MOVIE
language: ru-RU
type: public
encoding: UTF-8
requestDelay: 2
links:
- https://firebit.net/
legacylinks:
@@ -64,12 +63,9 @@ download:
attribute: href
search:
# http://firebit.net/index.php?do=search&type=simple&q=2019
# http://firebit.net/%D1%84%D0%B8%D0%BB%D1%8C%D0%BC/ # movies
# http://firebit.net/%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB/ # tv
# http://firebit.net/index.php?do=search&type=simple&q=2022
paths:
- path: "{{ if .Keywords }}index.php?do=search&type=simple&q={{ .Keywords }}{{ else }}%D1%84%D0%B8%D0%BB%D1%8C%D0%BC/{{ end }}"
- path: "{{ if .Keywords }}index.php?do=search&type=simple&q=abcd1234{{ else }}%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB/{{ end }}"
- path: "{{ if .Keywords }}index.php?do=search&type=simple&q={{ .Keywords }}{{ else }{{ .Today.Year }}{{ end }}"
rows:
selector: "{{ if .Keywords }}table.torrents tbody tr:has(td.td-size){{ else }}div[id^=\"post-id-\"]:has(li.meta-size){{ end }}"