From 9d3e41cb5cc1d8242b1fcc35a52c06b82c766468 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 16 Mar 2019 10:28:20 +1300 Subject: [PATCH] kinozal and nnm-club: #4767 drop adding a leading 0 on numbers add kubik replacement drop brackets on sxxexx for nnm-club --- src/Jackett.Common/Definitions/kinozal.yml | 6 +++--- src/Jackett.Common/Definitions/nnm-club.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/kinozal.yml b/src/Jackett.Common/Definitions/kinozal.yml index 797cf259f..987625541 100644 --- a/src/Jackett.Common/Definitions/kinozal.yml +++ b/src/Jackett.Common/Definitions/kinozal.yml @@ -167,12 +167,12 @@ selector: td.nam a[href^="/details.php?id="] filters: # normalize to SXXEYY format - - name: re_replace - args: ["\\b(\\d)\\b", "0$1"] - name: replace args: ["Кураж-Бамбей", "kurazh"] + - name: replace + args: ["Кубик в Кубе", "Kubik"] - name: re_replace # also drop the brackets and move it to the end of string - args: ["\\((\\d+)\\s+[Сс]езон:\\s+((\\d+-*\\d*)\\s+[Сс]ери[ия]\\s+.*\\d+)\\)(.*)", "$4 S$1E$2 RUS "] + args: ["\\((\\d+)\\s+[Сс]езон:\\s+(?:(\\d+-*\\d*)\\s+[Сс]ери[ия]\\s+.*\\d+)\\)(.*)", "$3 S$1E$2 RUS "] - name: re_replace # drop brackets around quality args: ["\\((\\d+p)\\)", "$1"] - name: re_replace # optionally strip russian chars diff --git a/src/Jackett.Common/Definitions/nnm-club.yml b/src/Jackett.Common/Definitions/nnm-club.yml index d01817781..2628e1f4c 100644 --- a/src/Jackett.Common/Definitions/nnm-club.yml +++ b/src/Jackett.Common/Definitions/nnm-club.yml @@ -732,12 +732,12 @@ title: selector: a[href^="viewtopic.php?t="] > b filters: - - name: re_replace - args: ["\\b(\\d)\\b", "0$1"] - name: replace args: ["Кураж-Бамбей", "kurazh"] + - name: replace + args: ["Кубик в Кубе", "Kubik"] - name: re_replace - args: ["(\\([Сс]езон\\s+(\\d+).+[Сс]ери[ия]\\s+(?:(\\d+-*\\d*).*\\d+)*\\))", "(S$2E$3) RUS"] + args: ["(\\([Сс]езон\\s+(\\d+).+[Сс]ери[ия]\\s+(?:(\\d+-*\\d*).*\\d+)*\\))", "S$2E$3 RUS"] - name: re_replace args: ["(\\([А-Яа-я\\W]+\\))|(^[А-Яа-я\\W\\d]+\\/ )|([а-яА-Я \\-]+,+)|([а-яА-Я]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"] - name: replace