torrentleech-pl: add genre results

master
ilike2burnthing 2022-08-05 01:50:30 +01:00 committed by GitHub
parent 7c102a1101
commit abd34c5973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -82,6 +82,8 @@ search:
cat_film: ""
# subtitles: 0 everything, 1 yes, 2 no
napisy: 0
# can search by genre but you need the id. &cat_film=1 for akcja.
keywordsfilters:
# remove the year from the titles as the site chokes on them during search #7424
- name: re_replace
@ -118,6 +120,11 @@ search:
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
genre:
selector: font[color="blue"]
filters:
- name: validate
args: "akcja, animacja, anime, biograficzny, czarna komedia, dokumentalny, dramat, dramat historyczny, edukacyjny, etiuda, familijny, fantasy, gangsterski, historyczny, horror, katastroficzny, komedia, komedia kryminalna, komedia obyczajowa, komedia romantyczna, krótkometrażowy, kryminał, melodramat, musical, muzyczny, niemy, przygodowy, romans, sci-fi, sensacyjny, sportowy, szpiegowski, thriller, western, wojenny"
_language:
optional: true
selector: img[src="pic/pl.jpg"]
@ -131,7 +138,7 @@ search:
- name: append
args: "Subbed\n<br>"
description:
text: "{{ .Result._language }}{{ .Result._subbed }}"
text: "{{ .Result._language }}{{ .Result._subbed }}{{ if .Result.genre }}Genres: {{ .Result.genre }}{{ else }}{{ end }}"
date:
selector: td:nth-child(4)
filters: