gktorrent: fix #1941

the dashboard test requires just the base path.
categories matching requires french keywords
the site does not supply a release date, so lets default to now,
otherwise we get ugly "2017y old" in dashboard results.
This commit is contained in:
Garfield69 2017-10-09 13:36:09 +13:00
parent 34780f91be
commit 49a7c8df7a
1 changed files with 9 additions and 7 deletions

View File

@ -28,7 +28,7 @@
selector: a[href^="/get_torrent/"]
search:
path: "/search/{{ .Query.Keywords }}"
path: "{{if .Keywords}}/recherche/{{.Keywords}}{{else}}{{end}}"
rows:
selector: div.listing-torrent > table > tbody > tr:has(a)
fields:
@ -70,9 +70,11 @@
category:
selector: td:nth-child(1) > i
case:
.Movies: "movies"
.TV: "tvshows"
.Softwares: "softwares"
.Music: "music"
.Games: "games"
.Books: "books"
.Films: "movies"
.Séries: "tvshows"
.Logiciels: "softwares"
.Musiques: "music"
.Jeux: "games"
.Ebooks: "books"
date:
text: "now"