mvgroup: optionally strip S01E01 from torznab searches. resolves #2488

This commit is contained in:
Garfield69 2018-02-13 09:04:24 +13:00
parent 5e35072a39
commit 5e4022cc43
2 changed files with 18 additions and 0 deletions

View File

@ -92,6 +92,10 @@
type: checkbox
label: Drop "BBC " from the front of result titles
default: false
- name: stripS01E01
type: checkbox
label: Strip the S01E01 from the Torznab search requests
default: false
- name: info
type: info
label: Category for Sonarr and Radarr
@ -125,6 +129,9 @@
"seed": "{{ if .Config.seed }}1{{else}}0{{end}}"
"withsubs": "{{ re_replace .Config.withsubs \"_\" \"\" }}"
"filter": "{{ if .Config.hidef }}hd+{{else}}{{end}}{{ .Keywords }}"
keywordsfilters:
- name: re_replace
args: ["S01E01", "{{ if .Config.stripS01E01 }}{{else}}S01E01{{end}}"] # optionally remove S01E01 from search
rows:
selector: tr:has(a.magnetlink)
@ -138,6 +145,8 @@
filters:
- name: re_replace
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
- name: append
args: "{{ if .Config.stripS01E01 }} S01E01{{else}}{{end}}"
details:
optional: true
selector: td.singleindent a[href^="/index.php?showtopic="]

View File

@ -92,6 +92,10 @@
type: checkbox
label: Drop "BBC " from the front of result titles
default: false
- name: stripS01E01
type: checkbox
label: Strip the S01E01 from the Torznab search requests
default: false
- name: info
type: info
label: Category for Sonarr and Radarr
@ -125,6 +129,9 @@
"seed": "{{ if .Config.seed }}1{{else}}0{{end}}"
"withsubs": "{{ re_replace .Config.withsubs \"_\" \"\" }}"
"filter": "{{ if .Config.hidef }}hd+{{else}}{{end}}{{ .Keywords }}"
keywordsfilters:
- name: re_replace
args: ["S01E01", "{{ if .Config.stripS01E01 }}{{else}}S01E01{{end}}"] # optionally remove S01E01 from search
rows:
selector: tr:has(a.magnetlink)
@ -138,6 +145,8 @@
filters:
- name: re_replace
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
- name: append
args: "{{ if .Config.stripS01E01 }} S01E01{{else}}{{end}}"
details:
optional: true
selector: td.singleindent a[href^="/index.php?showtopic="]