mirror of https://github.com/Jackett/Jackett
mvgroup*: improvements to optional bbc title stripping
1. do not filter 'BBC ' from anywhere but the start of the title string 2. condense the two optional title blocks into a single title block
This commit is contained in:
parent
7f59ae0b6f
commit
70ca19c6d9
|
@ -130,20 +130,14 @@
|
|||
selector: tr:has(a.magnetlink)
|
||||
fields:
|
||||
title:
|
||||
# fallback title (to prevent abend if neither optional is found)
|
||||
# fallback title (to prevent abend if optional is not found)
|
||||
text: "title not found"
|
||||
title:
|
||||
optional: true
|
||||
selector: td.singleindent a[href^="/index.php?showtopic="]
|
||||
selector: td.doubleindent, td.singleindent a[href^="/index.php?showtopic="]
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
title:
|
||||
optional: true
|
||||
selector: td.doubleindent
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
details:
|
||||
optional: true
|
||||
selector: td.singleindent a[href^="/index.php?showtopic="]
|
||||
|
|
|
@ -130,20 +130,14 @@
|
|||
selector: tr:has(a.magnetlink)
|
||||
fields:
|
||||
title:
|
||||
# fallback title (to prevent abend if neither optional is found)
|
||||
# fallback title (to prevent abend if optional is not found)
|
||||
text: "title not found"
|
||||
title:
|
||||
optional: true
|
||||
selector: td.singleindent a[href^="/index.php?showtopic="]
|
||||
selector: td.doubleindent, td.singleindent a[href^="/index.php?showtopic="]
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
title:
|
||||
optional: true
|
||||
selector: td.doubleindent
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
args: ["^BBC (.*)", "{{ if .Config.dropbbc }}{{ else }}BBC {{ end }}$1"]
|
||||
details:
|
||||
optional: true
|
||||
selector: td.singleindent a[href^="/index.php?showtopic="]
|
||||
|
|
Loading…
Reference in New Issue