1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-12 15:14:50 +00:00

mircrew: add setting to improve Radarr compatibility. resolves #15034

This commit is contained in:
ilike2burnthing 2024-02-06 23:46:23 +00:00 committed by GitHub
parent 1b5224395d
commit 060d40af3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,6 +79,18 @@ caps:
music-search: [q] music-search: [q]
book-search: [q] book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: radarr_compatibility
type: checkbox
label: Improve Radarr compatibility by removing translated titles from movie results
default: false
login: login:
path: ucp.php?mode=login path: ucp.php?mode=login
method: form method: form
@ -150,6 +162,15 @@ search:
filters: filters:
- name: querystring - name: querystring
args: f args: f
_is_movie:
selector: a[href^="./viewforum.php?f="]
attribute: href
case:
a[href*="f=25"]: yes
a[href*="f=26"]: yes
a[href*="f=34"]: yes
a[href*="f=36"]: yes
"*": no
title: title:
selector: a.topictitle selector: a.topictitle
filters: filters:
@ -162,6 +183,8 @@ search:
args: ["(?i)\\bStagion[ei] (\\d{1,3}(?:-\\d{1,3})?)\\b", "S$1"] args: ["(?i)\\bStagion[ei] (\\d{1,3}(?:-\\d{1,3})?)\\b", "S$1"]
- name: re_replace - name: re_replace
args: ["(?i)\\s*(?:\\[IN CORSO\\])?\\s*\\[(\\d{1,3}(?:-\\d{1,3})?)\\/(\\d{1,3})\\]", " E$1 of $2"] args: ["(?i)\\s*(?:\\[IN CORSO\\])?\\s*\\[(\\d{1,3}(?:-\\d{1,3})?)\\/(\\d{1,3})\\]", " E$1 of $2"]
- name: re_replace
args: ["(?i)^(.+ )(- .+? )(\\((?:19|20)\\d{2})", "{{ if and (eq .Result._is_movie \"yes\") (.Config.radarr_compatibility) }}$1$3{{ else }}$1$2$3{{ end }}"]
details: details:
selector: a.topictitle selector: a.topictitle
attribute: href attribute: href