Private GIT

Skip to content
Snippets Groups Projects
Commit 75bb3db9 authored by Garfield69's avatar Garfield69 Committed by vlbox
Browse files

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

parent 8f434552
Branches
No related tags found
No related merge requests found
...@@ -92,6 +92,10 @@ ...@@ -92,6 +92,10 @@
type: checkbox type: checkbox
label: Drop "BBC " from the front of result titles label: Drop "BBC " from the front of result titles
default: false default: false
- name: stripS01E01
type: checkbox
label: Strip the S01E01 from the Torznab search requests
default: false
- name: info - name: info
type: info type: info
label: Category for Sonarr and Radarr label: Category for Sonarr and Radarr
...@@ -125,6 +129,9 @@ ...@@ -125,6 +129,9 @@
"seed": "{{ if .Config.seed }}1{{else}}0{{end}}" "seed": "{{ if .Config.seed }}1{{else}}0{{end}}"
"withsubs": "{{ re_replace .Config.withsubs \"_\" \"\" }}" "withsubs": "{{ re_replace .Config.withsubs \"_\" \"\" }}"
"filter": "{{ if .Config.hidef }}hd+{{else}}{{end}}{{ .Keywords }}" "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: rows:
selector: tr:has(a.magnetlink) selector: tr:has(a.magnetlink)
...@@ -138,6 +145,8 @@ ...@@ -138,6 +145,8 @@
filters: filters:
- name: re_replace - name: re_replace
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"] args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
- name: append
args: "{{ if .Config.stripS01E01 }} S01E01{{else}}{{end}}"
details: details:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]
......
...@@ -92,6 +92,10 @@ ...@@ -92,6 +92,10 @@
type: checkbox type: checkbox
label: Drop "BBC " from the front of result titles label: Drop "BBC " from the front of result titles
default: false default: false
- name: stripS01E01
type: checkbox
label: Strip the S01E01 from the Torznab search requests
default: false
- name: info - name: info
type: info type: info
label: Category for Sonarr and Radarr label: Category for Sonarr and Radarr
...@@ -125,6 +129,9 @@ ...@@ -125,6 +129,9 @@
"seed": "{{ if .Config.seed }}1{{else}}0{{end}}" "seed": "{{ if .Config.seed }}1{{else}}0{{end}}"
"withsubs": "{{ re_replace .Config.withsubs \"_\" \"\" }}" "withsubs": "{{ re_replace .Config.withsubs \"_\" \"\" }}"
"filter": "{{ if .Config.hidef }}hd+{{else}}{{end}}{{ .Keywords }}" "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: rows:
selector: tr:has(a.magnetlink) selector: tr:has(a.magnetlink)
...@@ -138,6 +145,8 @@ ...@@ -138,6 +145,8 @@
filters: filters:
- name: re_replace - name: re_replace
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"] args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
- name: append
args: "{{ if .Config.stripS01E01 }} S01E01{{else}}{{end}}"
details: details:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment