cartoonchaos: fix title naming (#13973)

same for CRT
This commit is contained in:
Bogdan 2023-02-05 04:57:49 +02:00 committed by GitHub
parent e0c6a3b469
commit dfc50f9852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 14 deletions

View File

@ -114,10 +114,6 @@ search:
args: ["(?i)\\.torrent$", ""] args: ["(?i)\\.torrent$", ""]
title_text: title_text:
selector: td a[href^="index.php?page=torrent-details"] selector: td a[href^="index.php?page=torrent-details"]
filters:
# #11775
- name: re_replace
args: ["(?i)(season )", "S"]
category: category:
selector: td a[href^="index.php?page=torrents&category="] selector: td a[href^="index.php?page=torrents&category="]
attribute: href attribute: href
@ -126,6 +122,18 @@ search:
args: category args: category
title: title:
text: "{{ if .Result.title_torrent }}{{ .Result.title_torrent }}{{ else }}{{ .Result.title_text }}{{ end }}" text: "{{ if .Result.title_torrent }}{{ .Result.title_torrent }}{{ else }}{{ .Result.title_text }}{{ end }}"
filters:
# #11775
- name: re_replace # Seasons X-Y --> S0X-S0Y
args: ["(?i)\\bSeasons?[-.\\s]*(\\d)[-.\\s]*(?:-|to)[-.\\s]*(\\d)\\b", "S0$1-S0$2"]
- name: re_replace # Seasons X-YY --> S0X-SYY
args: ["(?i)\\bSeasons?[-.\\s]*(\\d)[-.\\s]*(?:-|to)[-.\\s]*(\\d+)\\b", "S0$1-S$2"]
- name: re_replace # Seasons XX-YY --> SXX-SYY
args: ["(?i)\\bSeasons?[-.\\s]*(\\d+)[-.\\s]*(?:-|to)[-.\\s]*(\\d+)\\b", "S$1-S$2"]
- name: re_replace # Season X --> S0X
args: ["(?i)\\bSeasons?[-.\\s]*(\\d)\\b", "S0$1"]
- name: re_replace # Season XX --> SXX
args: ["(?i)\\bSeasons?[-.\\s]*(\\d+)\\b", "S$1"]
details: details:
selector: td a[href^="index.php?page=torrent-details"] selector: td a[href^="index.php?page=torrent-details"]
attribute: href attribute: href

View File

@ -105,15 +105,15 @@ search:
selector: a[href^="/torrents.php?id="] selector: a[href^="/torrents.php?id="]
filters: filters:
- name: re_replace # Seasons X-Y --> S0X-S0Y - name: re_replace # Seasons X-Y --> S0X-S0Y
args: ["(?i)seasons?\\s*(\\d)\\s*-\\s*(\\d)\\b", "S0$1-S0$2"] args: ["(?i)\\bSeasons?\\s*(\\d)\\s*-\\s*(\\d)\\b", "S0$1-S0$2"]
- name: re_replace # Seasons X-YY --> S0X-SYY - name: re_replace # Seasons X-YY --> S0X-SYY
args: ["(?i)seasons?\\s*(\\d)\\s*-\\s*(\\d+)\\b", "S0$1-S$2"] args: ["(?i)\\bSeasons?\\s*(\\d)\\s*-\\s*(\\d+)\\b", "S0$1-S$2"]
- name: re_replace # Seasons XX-YY --> SXX-SYY - name: re_replace # Seasons XX-YY --> SXX-SYY
args: ["(?i)seasons?\\s*(\\d+)\\s*-\\s*(\\d+)\\b", "S$1-S$2"] args: ["(?i)\\bSeasons?\\s*(\\d+)\\s*-\\s*(\\d+)\\b", "S$1-S$2"]
- name: re_replace # Season X --> S0X - name: re_replace # Season X --> S0X
args: ["(?i)season\\s*(\\d)\\b", "S0$1"] args: ["(?i)\\bSeasons?\\s*(\\d)\\b", "S0$1"]
- name: re_replace # Season XX --> SXX - name: re_replace # Season XX --> SXX
args: ["(?i)season\\s*(\\d+)\\b", "S$1"] args: ["(?i)\\bSeasons?\\s*(\\d+)\\b", "S$1"]
- name: re_replace - name: re_replace
args: ["(?i)\\bComplete\\s+Series\\b", ""] args: ["(?i)\\bComplete\\s+Series\\b", ""]
details: details:

View File

@ -95,15 +95,15 @@ search:
selector: a[href^="/torrents.php?id="] selector: a[href^="/torrents.php?id="]
filters: filters:
- name: re_replace # Seasons X-Y --> S0X-S0Y - name: re_replace # Seasons X-Y --> S0X-S0Y
args: ["(?i)seasons?\\s*(\\d)\\s*-\\s*(\\d)\\b", "S0$1-S0$2"] args: ["(?i)\\bSeasons?\\s*(\\d)\\s*-\\s*(\\d)\\b", "S0$1-S0$2"]
- name: re_replace # Seasons X-YY --> S0X-SYY - name: re_replace # Seasons X-YY --> S0X-SYY
args: ["(?i)seasons?\\s*(\\d)\\s*-\\s*(\\d+)\\b", "S0$1-S$2"] args: ["(?i)\\bSeasons?\\s*(\\d)\\s*-\\s*(\\d+)\\b", "S0$1-S$2"]
- name: re_replace # Seasons XX-YY --> SXX-SYY - name: re_replace # Seasons XX-YY --> SXX-SYY
args: ["(?i)seasons?\\s*(\\d+)\\s*-\\s*(\\d+)\\b", "S$1-S$2"] args: ["(?i)\\bSeasons?\\s*(\\d+)\\s*-\\s*(\\d+)\\b", "S$1-S$2"]
- name: re_replace # Season X --> S0X - name: re_replace # Season X --> S0X
args: ["(?i)season\\s*(\\d)\\b", "S0$1"] args: ["(?i)\\bSeasons?\\s*(\\d)\\b", "S0$1"]
- name: re_replace # Season XX --> SXX - name: re_replace # Season XX --> SXX
args: ["(?i)season\\s*(\\d+)\\b", "S$1"] args: ["(?i)\\bSeasons?\\s*(\\d+)\\b", "S$1"]
- name: re_replace - name: re_replace
args: ["(?i)\\bComplete\\s+Series\\b", ""] args: ["(?i)\\bComplete\\s+Series\\b", ""]
details: details: