mvgroup*: option to strip BBC from front of titles. Resolves #2367

This commit is contained in:
Garfield69
2018-01-06 19:11:30 +13:00
parent efc4600918
commit 29b83757e3
2 changed files with 20 additions and 0 deletions

View File

@@ -88,6 +88,10 @@
type: checkbox type: checkbox
label: Only released and seeded torrents label: Only released and seeded torrents
default: false default: false
- name: dropbbc
type: checkbox
label: Drop "BBC " from the front of result titles
default: false
- name: info - name: info
type: info type: info
label: Category for Sonarr and Radarr label: Category for Sonarr and Radarr
@@ -131,9 +135,15 @@
title: title:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]
filters:
- name: re_replace
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
title: title:
optional: true optional: true
selector: td.doubleindent selector: td.doubleindent
filters:
- name: re_replace
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
details: details:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]

View File

@@ -88,6 +88,10 @@
type: checkbox type: checkbox
label: Only released and seeded torrents label: Only released and seeded torrents
default: false default: false
- name: dropbbc
type: checkbox
label: Drop "BBC " from the front of result titles
default: false
- name: info - name: info
type: info type: info
label: Category for Sonarr and Radarr label: Category for Sonarr and Radarr
@@ -131,9 +135,15 @@
title: title:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]
filters:
- name: re_replace
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
title: title:
optional: true optional: true
selector: td.doubleindent selector: td.doubleindent
filters:
- name: re_replace
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
details: details:
optional: true optional: true
selector: td.singleindent a[href^="/index.php?showtopic="] selector: td.singleindent a[href^="/index.php?showtopic="]