mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
PiratBit: fix TV shows search, add "strip russian letters" option (#8167)
This commit is contained in:
@@ -605,6 +605,8 @@
|
|||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
|
tv-search: [q, season, ep]
|
||||||
|
movie-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: sort
|
- name: sort
|
||||||
@@ -622,6 +624,10 @@
|
|||||||
options:
|
options:
|
||||||
"2": "desc"
|
"2": "desc"
|
||||||
"1": "asc"
|
"1": "asc"
|
||||||
|
- name: striprussian
|
||||||
|
type: checkbox
|
||||||
|
label: Strip Russian Letters
|
||||||
|
default: true
|
||||||
|
|
||||||
|
|
||||||
download:
|
download:
|
||||||
@@ -632,6 +638,13 @@
|
|||||||
paths:
|
paths:
|
||||||
- path: tracker.php
|
- path: tracker.php
|
||||||
method: post
|
method: post
|
||||||
|
keywordsfilters:
|
||||||
|
- name: diacritics
|
||||||
|
args: replace
|
||||||
|
- name: re_replace # S01 to Cезон 1
|
||||||
|
args: ["(?i)\\bS0*(\\d+)\\b", "Сезон $1"]
|
||||||
|
- name: re_replace # S01E01 to Сезон 1 Серии 1
|
||||||
|
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "Сезон $1 Серии $2"]
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{else}}f[]=-1{{end}}"
|
$raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{else}}f[]=-1{{end}}"
|
||||||
prev_a: 0
|
prev_a: 0
|
||||||
@@ -670,6 +683,16 @@
|
|||||||
args: f
|
args: f
|
||||||
title:
|
title:
|
||||||
selector: td a.genmed
|
selector: td a.genmed
|
||||||
|
filters:
|
||||||
|
# normalize to SXXEYY format
|
||||||
|
- name: re_replace
|
||||||
|
args: ["[\\:\\-\\/\\|]", " "]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(.+)\\s+[CСcс]езон\\s+(\\d+)\\s+[CСcс]ерии\\s+(\\d+)\\s+(\\d+)\\s+из\\s+\\d+(.+)", "$1 S$2E$3-$4 rus $5"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(.+)\\s+[CСcс]езон\\s+(\\d+)\\s+[CСcс]ери[ия]\\s+(\\d+)\\s+из\\s+\\d+(.+)", "$1 S$2E$3 rus $4"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(\\([А-Яа-яЁё\\W]+\\))|(^[А-Яа-яЁё\\W\\d]+\\/ )|([а-яА-ЯЁё \\-]+,+)|([а-яА-ЯЁё]+)", "{{ if .Config.striprussian }}{{ else }}$0{{ end }}"]
|
||||||
details:
|
details:
|
||||||
selector: td a.genmed
|
selector: td a.genmed
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user