Add option to perform agressive quality mapping, required for some fr anime releases

This commit is contained in:
romain.lecat 2019-01-23 14:54:29 +01:00
parent 9bf9ec7029
commit b74042362c
1 changed files with 13 additions and 2 deletions

View File

@ -9,8 +9,12 @@
- https://nyaa.si
certificates:
- 3801e330482d4f9baef71ca4e33ba23ede74f59c # incomplete CA chain
settings:
- name: agressive_quality_mapping
type: checkbox
label: "Agressive quality mapping (required for some releases, will map FHD as 1080p)"
default: false
- name: filter-id
type: select
label: Filter
@ -98,8 +102,15 @@
filters:
- name: split
args: [ "=", -1 ]
title:
title_quality:
selector: td:nth-child(2) a:last-of-type
filters:
- name: replace
args: ["FHD", "1080p"]
title_normal:
selector: td:nth-child(2) a:last-of-type
title:
text: "{{if .Config.agressive_quality_mapping }}{{ .Result.title_quality }}{{else}}{{ .Result.title_normal }}{{end}}"
details:
selector: td:nth-child(2) a:last-of-type
attribute: href