From 3c1ed24602fb1582727ce7c61104346f8c1d01ac Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 18 Sep 2020 17:20:24 +1200 Subject: [PATCH] cpabien, cpasbienclone, epizod: fix title year move --- src/Jackett.Common/Definitions/cpabien.yml | 20 +++++++++---------- .../Definitions/cpasbienclone.yml | 18 +++++++++-------- src/Jackett.Common/Definitions/epizod.yml | 2 ++ 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/Jackett.Common/Definitions/cpabien.yml b/src/Jackett.Common/Definitions/cpabien.yml index 6c166897e..1e2895946 100644 --- a/src/Jackett.Common/Definitions/cpabien.yml +++ b/src/Jackett.Common/Definitions/cpabien.yml @@ -124,16 +124,16 @@ search: selector: a filters: # now we put the date at the right place according scene naming rules using .Result.site_date - - name: replace - args: [" FRENCH", " {{ .Result.site_date }} FRENCH"] - - name: replace - args: [" MULTI", " {{ .Result.site_date }} MULTI"] - - name: replace - args: [" TRUEFRENCH", " {{ .Result.site_date }} TRUEFRENCH"] - - name: replace - args: [" VOSTFR", " {{ .Result.site_date }} VOSTFR"] - - name: replace - args: [" SUBFRENCH", " {{ .Result.site_date }} SUBFRENCH"] + - name: re_replace + args: ["(?i)( FRENCH)", " {{ .Result.site_date }} FRENCH"] + - name: re_replace + args: ["(?i)( MULTI)", " {{ .Result.site_date }} MULTI"] + - name: re_replace + args: ["(?i)( TRUEFRENCH)", " {{ .Result.site_date }} TRUEFRENCH"] + - name: re_replace + args: ["(?i)( VOSTFR)", " {{ .Result.site_date }} VOSTFR"] + - name: re_replace + args: ["(?i)( SUBFRENCH)", " {{ .Result.site_date }} SUBFRENCH"] # and we delete it at the end - name: re_replace args: ["(19|20\\d{2})$", ""] diff --git a/src/Jackett.Common/Definitions/cpasbienclone.yml b/src/Jackett.Common/Definitions/cpasbienclone.yml index 34fcdbeef..10d4c0f29 100644 --- a/src/Jackett.Common/Definitions/cpasbienclone.yml +++ b/src/Jackett.Common/Definitions/cpasbienclone.yml @@ -91,14 +91,16 @@ search: selector: a filters: # now we put the date at the right place according scene naming rules using .Result.site_date - - name: replace - args: [" FRENCH", " {{ .Result.site_date }} FRENCH"] - - name: replace - args: ["MULTI", "{{ .Result.site_date }} MULTI"] - - name: replace - args: ["TRUEFRENCH", "{{ .Result.site_date }} TRUEFRENCH"] - - name: replace - args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"] + - name: re_replace + args: ["(?i)( FRENCH)", " {{ .Result.site_date }} FRENCH"] + - name: re_replace + args: ["(?i)( MULTI)", " {{ .Result.site_date }} MULTI"] + - name: re_replace + args: ["(?i)( TRUEFRENCH)", " {{ .Result.site_date }} TRUEFRENCH"] + - name: re_replace + args: ["(?i)( VOSTFR)", " {{ .Result.site_date }} VOSTFR"] + - name: re_replace + args: ["(?i)( SUBFRENCH)", " {{ .Result.site_date }} SUBFRENCH"] # and we delete it at the end - name: re_replace args: ["(19|20\\d{2})$", ""] diff --git a/src/Jackett.Common/Definitions/epizod.yml b/src/Jackett.Common/Definitions/epizod.yml index 8f6be6710..59b223500 100644 --- a/src/Jackett.Common/Definitions/epizod.yml +++ b/src/Jackett.Common/Definitions/epizod.yml @@ -86,6 +86,8 @@ search: args: ["(?i)( TRUEFRENCH)", " {{ .Result.site_date }} TRUEFRENCH"] - name: re_replace args: ["(?i)( VOSTFR)", " {{ .Result.site_date }} VOSTFR"] + - name: re_replace + args: ["(?i)( SUBFRENCH)", " {{ .Result.site_date }} SUBFRENCH"] # and we delete it at the end - name: re_replace args: ["(19|20\\d{2})$", ""]