mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
bitru: add title filters (#13149)
This commit is contained in:
@@ -31,6 +31,14 @@ caps:
|
|||||||
book-search: [q]
|
book-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
- name: striprussian
|
||||||
|
type: checkbox
|
||||||
|
label: Strip Russian Letters
|
||||||
|
default: false
|
||||||
|
- name: addrussian
|
||||||
|
type: checkbox
|
||||||
|
label: Add RUSSIAN to end of all titles to improve language detection by Sonarr and Radarr. Will cause English-only results to be misidentified.
|
||||||
|
default: false
|
||||||
- name: adverts
|
- name: adverts
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Include Advertising
|
label: Include Advertising
|
||||||
@@ -64,6 +72,23 @@ search:
|
|||||||
args: tmp
|
args: tmp
|
||||||
title:
|
title:
|
||||||
selector: a[href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
|
filters:
|
||||||
|
- name: replace
|
||||||
|
args: ["селезень", "selezen"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(\\([А-Яа-яЁё\\W]+\\))|(^[А-Яа-яЁё\\W\\d]+\\/ )|([а-яА-ЯЁё \\-]+,+)|([а-яА-ЯЁё]+)", "{{ if .Config.striprussian }}{{ else }}$1$2$3$4{{ end }}"]
|
||||||
|
- name: re_replace
|
||||||
|
args: ["[\\:\\-\\/\\|\\[\\]]", " "]
|
||||||
|
- name: append
|
||||||
|
args: "{{ if .Config.addrussian }} - RUSSIAN{{ else }}{{ end }}"
|
||||||
|
- name: replace
|
||||||
|
args: [" Rip", "Rip"]
|
||||||
|
- name: replace
|
||||||
|
args: ["WEB DL", "WEBDL"]
|
||||||
|
- name: replace
|
||||||
|
args: ["WEBDLRip", "WEBDL"]
|
||||||
|
- name: replace
|
||||||
|
args: ["HDTVRip", "HDTV"]
|
||||||
details:
|
details:
|
||||||
selector: a[href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user