nyaasi: second search path strips 0 from start of episode number. resolves #11019

This commit is contained in:
ilike2burnthing 2021-06-16 07:07:18 +01:00 committed by GitHub
parent 494331b5fd
commit 6aca3ff059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -117,16 +117,14 @@ caps:
search:
paths:
- path: /
inputs:
q: "{{ .Keywords }}"
f: "{{ .Config.filter-id }}"
c: "{{ .Config.cat-id }}"
s: "{{ .Config.sort }}"
o: "{{ .Config.type }}"
- path: "?q={{ .Keywords }}&f={{ .Config.filter-id }}&c={{ .Config.cat-id }}&s={{ .Config.sort }}&o={{ .Config.type }}"
# strip 0 from start of episode number - #11019
- path: "?q={{ if .Keywords }}{{ re_replace .Keywords \" 0(\\d{1})\" \" $1\" }}{{ else }}&p=2{{ end }}&f={{ .Config.filter-id }}&c={{ .Config.cat-id }}&s={{ .Config.sort }}&o={{ .Config.type }}"
rows:
selector: tr.default,tr.danger,tr.success
filters:
- name: andmatch
fields:
category: