kinozal and nnm-club: #4767

drop adding a leading 0 on numbers
add kubik replacement
drop brackets on sxxexx for nnm-club
This commit is contained in:
Garfield69 2019-03-16 10:28:20 +13:00
parent 093425ac0a
commit 9d3e41cb5c
2 changed files with 6 additions and 6 deletions

View File

@ -167,12 +167,12 @@
selector: td.nam a[href^="/details.php?id="] selector: td.nam a[href^="/details.php?id="]
filters: filters:
# normalize to SXXEYY format # normalize to SXXEYY format
- name: re_replace
args: ["\\b(\\d)\\b", "0$1"]
- name: replace - name: replace
args: ["Кураж-Бамбей", "kurazh"] args: ["Кураж-Бамбей", "kurazh"]
- name: replace
args: ["Кубик в Кубе", "Kubik"]
- name: re_replace # also drop the brackets and move it to the end of string - 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 - name: re_replace # drop brackets around quality
args: ["\\((\\d+p)\\)", "$1"] args: ["\\((\\d+p)\\)", "$1"]
- name: re_replace # optionally strip russian chars - name: re_replace # optionally strip russian chars

View File

@ -732,12 +732,12 @@
title: title:
selector: a[href^="viewtopic.php?t="] > b selector: a[href^="viewtopic.php?t="] > b
filters: filters:
- name: re_replace
args: ["\\b(\\d)\\b", "0$1"]
- name: replace - name: replace
args: ["Кураж-Бамбей", "kurazh"] args: ["Кураж-Бамбей", "kurazh"]
- name: replace
args: ["Кубик в Кубе", "Kubik"]
- name: re_replace - 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 - name: re_replace
args: ["(\\([А-Яа-я\\W]+\\))|(^[А-Яа-я\\W\\d]+\\/ )|([а-яА-Я \\-]+,+)|([а-яА-Я]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"] args: ["(\\([А-Яа-я\\W]+\\))|(^[А-Яа-я\\W\\d]+\\/ )|([а-яА-Я \\-]+,+)|([а-яА-Я]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
- name: replace - name: replace