Skip to content

Commit

Permalink
torrent9: revert bffb505
Browse files Browse the repository at this point in the history
we want the phase1 filters to apply to either the default or the optional
so there is little point using the default: statement for this one.
  • Loading branch information
garfield69 committed Mar 20, 2023
1 parent bffb505 commit 0f9f173
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/torrent9.yml
Expand Up @@ -141,11 +141,12 @@ search:
i[class="fa fa-book"]: ebook
title_default:
selector: td:nth-child(1) a
title_phase1:
title_optional:
selector: td:nth-child(1) a[title]
attribute: title
optional: true
default: "{{ .Result.title_default }}"
title_phase1:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
filters:
- name: re_replace
args: ["(?i)\\b(FRENCH|MULTI|TRUEFRENCH|VOSTFR|SUBFRENCH)\\b(.+?)(\\b(19|20\\d{2})\\b)$", "$3 $1$2"]
Expand Down

0 comments on commit 0f9f173

Please sign in to comment.