karagarga: rework genre and description (#13444)

This commit is contained in:
ilike2burnthing 2022-08-20 18:38:23 +01:00 committed by GitHub
parent 2257b143c2
commit 74d9253493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -134,18 +134,16 @@ search:
_subs:
selector: span:contains("Subs:")
optional: true
_genre:
genre:
selector: td:nth-child(5)
optional: true
filters:
- name: prepend
args: "Genre: "
- name: replace
args: ["\n", " "]
_mom:
selector: img[title^="CURRENT"]
attribute: title
optional: true
description:
text: "{{ .Result._subs }} {{ .Result._genre }}{{ if .Result._mom }} Current MoM{{ else }}{{ end }}"
text: "{{ if .Result._subs }}Subs: {{ .Result._subs }}</br>{{ else }}{{ end }}{{ if .Result.genre }}Genre: {{ .Result.genre }}</br>{{ else }}{{ end }}{{ if .Result._mom }}Current MoM{{ else }}{{ end }}"
downloadvolumefactor:
case:
"span:contains(\"Freeleech\")": 0