Created a mock Sonarr container for the beta release
This commit is contained in:
@@ -22,57 +22,46 @@ legacylinks:
|
||||
- https://nyaa.uk-unblock.pro/
|
||||
- https://nyaa.root.yt/
|
||||
- https://nyaa.lol/ # dropped at request of owner
|
||||
- https://nyaa.nocensor.world/
|
||||
- https://nyaa.nocensor.lol/
|
||||
- https://nyaa.nocensor.art/
|
||||
- https://nyaa.mrunblock.guru/
|
||||
- https://nyaa.mrunblock.life/
|
||||
- https://nyaa.nocensor.click/
|
||||
- https://nyaa.mrunblock.bond/ # for magnets only
|
||||
- https://nyaa.nocensor.cloud/
|
||||
|
||||
caps:
|
||||
categorymappings:
|
||||
# Anime
|
||||
- {id: 1_0, cat: TV/Anime, desc: "Anime"}
|
||||
- {id: 1_1, cat: TV/Anime, desc: "Anime music videos"}
|
||||
- {id: 1_2, cat: TV/Anime, desc: "English subtitled animes"}
|
||||
- {id: 1_3, cat: TV/Anime, desc: "Non-english subtitled animes"}
|
||||
- {id: 1_4, cat: TV/Anime, desc: "Raw animes"}
|
||||
- {id: 1_1, cat: TV/Anime, desc: "Anime - Anime Music Video"}
|
||||
- {id: 1_2, cat: TV/Anime, desc: "Anime - English-translated"}
|
||||
- {id: 1_3, cat: TV/Anime, desc: "Anime - Non-English-translated"}
|
||||
- {id: 1_4, cat: TV/Anime, desc: "Anime - Raw"}
|
||||
# Anime as Movies (Radarr uses t=movie):
|
||||
- {id: 1_0, cat: Movies/Other, desc: "Anime"}
|
||||
- {id: 1_1, cat: Movies/Other, desc: "Anime music videos"}
|
||||
- {id: 1_2, cat: Movies/Other, desc: "English subtitled animes"}
|
||||
- {id: 1_3, cat: Movies/Other, desc: "Non-english subtitled animes"}
|
||||
- {id: 1_4, cat: Movies/Other, desc: "Raw animes"}
|
||||
# Audio
|
||||
- {id: 1_1, cat: Movies/Other, desc: "Anime - Anime Music Video"}
|
||||
- {id: 1_2, cat: Movies/Other, desc: "Anime - English-translated"}
|
||||
- {id: 1_3, cat: Movies/Other, desc: "Anime - Non-English-translated"}
|
||||
- {id: 1_4, cat: Movies/Other, desc: "Anime - Raw"}
|
||||
- {id: 2_0, cat: Audio, desc: "Audio"}
|
||||
- {id: 2_1, cat: Audio, desc: "Lossless audio"}
|
||||
- {id: 2_2, cat: Audio, desc: "Lossy audio"}
|
||||
# Literature
|
||||
- {id: 2_1, cat: Audio, desc: "Audio - Lossless"}
|
||||
- {id: 2_2, cat: Audio, desc: "Audio - Lossy"}
|
||||
- {id: 3_0, cat: Books, desc: "Literature"}
|
||||
- {id: 3_1, cat: Books, desc: "Literature english translated"}
|
||||
- {id: 3_2, cat: Books, desc: "Literature non-english translated"}
|
||||
- {id: 3_3, cat: Books, desc: "Raw literature"}
|
||||
# Live
|
||||
- {id: 3_1, cat: Books, desc: "Literature English-translated"}
|
||||
- {id: 3_2, cat: Books, desc: "Literature - Non-English-translated"}
|
||||
- {id: 3_3, cat: Books, desc: "Literature - Raw"}
|
||||
- {id: 4_0, cat: TV, desc: "Live Action"}
|
||||
- {id: 4_1, cat: TV, desc: "Live Action - English"}
|
||||
- {id: 4_2, cat: TV, desc: "Live Action - Idol/PV"}
|
||||
- {id: 4_3, cat: TV, desc: "Live Action - Non-English"}
|
||||
- {id: 4_1, cat: TV, desc: "Live Action - English-translated"}
|
||||
- {id: 4_2, cat: TV, desc: "Live Action - Idol/Promotional Video"}
|
||||
- {id: 4_3, cat: TV, desc: "Live Action - Non-English-translated"}
|
||||
- {id: 4_4, cat: TV, desc: "Live Action - Raw"}
|
||||
# Pics
|
||||
- {id: 5_0, cat: Other, desc: "Pictures"}
|
||||
- {id: 5_1, cat: Other, desc: "Pictures - Graphics"}
|
||||
- {id: 5_2, cat: Other, desc: "Pictures - Photos"}
|
||||
# Software
|
||||
- {id: 5_1, cat: Other, desc: "Pictures - Graphics"}
|
||||
- {id: 5_2, cat: Other, desc: "Pictures - Photos"}
|
||||
- {id: 6_0, cat: PC, desc: "Software"}
|
||||
- {id: 6_1, cat: PC/ISO, desc: "Applications"}
|
||||
- {id: 6_2, cat: PC/Games, desc: "Games"}
|
||||
- {id: 6_1, cat: PC/ISO, desc: "Software - Applications"}
|
||||
- {id: 6_2, cat: PC/Games, desc: "Software - Games"}
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
music-search: [q]
|
||||
book-search: [q]
|
||||
allowrawsearch: true
|
||||
|
||||
@@ -85,6 +74,10 @@ settings:
|
||||
type: checkbox
|
||||
label: Improve Sonarr compatibility by trying to add Season information into Release Titles
|
||||
default: false
|
||||
- name: strip_s01
|
||||
type: checkbox
|
||||
label: Remove first season keywords (S1/S01/Season 1), as some results do not include this for first/single season releases
|
||||
default: false
|
||||
- name: radarr_compatibility
|
||||
type: checkbox
|
||||
label: Improve Radarr compatibility by removing year information from keywords and adding it to Release Titles
|
||||
@@ -153,6 +146,7 @@ search:
|
||||
q: "{{ if .Keywords }}{{ re_replace .Keywords \"\\b0(\\d{1})\\b\" \"$1\" }}{{ else }}{{ end }}"
|
||||
p: "{{ if .Keywords }}{{ else }}2{{ end }}"
|
||||
inputs:
|
||||
# 0 all, 1 no remakes, 2 trusted only
|
||||
f: "{{ .Config.filter-id }}"
|
||||
c: "{{ .Config.cat-id }}"
|
||||
s: "{{ .Config.sort }}"
|
||||
@@ -161,6 +155,8 @@ search:
|
||||
keywordsfilters:
|
||||
- name: re_replace
|
||||
args: [" *\\b((?:19|20)\\d{2})\\b", "{{ if .Config.radarr_compatibility }}{{ else }} $1{{ end }}"]
|
||||
- name: re_replace
|
||||
args: ["(?i) *\\b(S(?:0|eason *)?1)\\b", "{{ if .Config.strip_s01 }}{{ else }} $1{{ end }}"]
|
||||
|
||||
rows:
|
||||
selector: tr.default,tr.danger,tr.success
|
||||
@@ -197,7 +193,7 @@ search:
|
||||
text: "{{ or (.Result.title_phase1) (.Result.title_default) }}"
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["^(\\[.+?\\] ?)?(\\[.+?\\] ?)?(.+?)(\\[)", "$1$2$3{{ if .Config.radarr_compatibility }} {{ .Result.title_keyword_year }} $4{{ else }}$4{{ end }}"]
|
||||
args: ["^(\\[.+?\\] ?)?(\\[.+?\\] ?)?(.+?)(\\[)", "$1$2$3{{ if and (.Config.radarr_compatibility) (.Result.title_keyword_year) }} {{ .Result.title_keyword_year }} $4{{ else }}$4{{ end }}"]
|
||||
title_phase3:
|
||||
text: "{{ .Result.title_phase2 }}"
|
||||
filters:
|
||||
@@ -229,6 +225,9 @@ search:
|
||||
args: ["(?i)\\b(?:S\\s|Seasons?\\s?)(\\d+(?:-\\d+)?)\\b(?!(?:-\\d+)?\\s(?:EP|Episodes?)?\\s?(?:\\d+(?:-\\d+)?)?\\s?S\\d+(?:E\\d+(?:-\\d+)?)?)", "$0 S$1"]
|
||||
- name: re_replace
|
||||
args: ["(?i)\\b(?:EP|Episodes?)\\s?(\\d+(?:-\\d+)?)\\b(?!(?:-\\d+)?\\sS\\d+(?:-\\d+)?(?:E\\d+(?:-\\d+)?)?)", "$0 S01E$1"]
|
||||
- name: re_replace
|
||||
args: ["\\s+", " "]
|
||||
- name: trim
|
||||
title_has_season:
|
||||
text: "{{ .Result.title_phase3 }}"
|
||||
filters:
|
||||
@@ -240,14 +239,21 @@ search:
|
||||
text: "{{ .Result.title_phase3 }}"
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "\\b(.+? - ?)(\\d+) ([\\[\\(])\\b"
|
||||
args: "\\b(.+? - ?)(\\d+(-\\d+)?) ([\\[\\(])\\b"
|
||||
- name: append
|
||||
args: "NULL"
|
||||
title_has_movie_ova:
|
||||
text: "{{ .Result.title_phase3 }}"
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "(?i)(?<![A-Za-z0-9])(Movies?|OVA|OAV)(?![A-Za-z0-9])"
|
||||
- name: re_replace
|
||||
args: ["(?i)(Movies?|OVA|OAV)", "YES"]
|
||||
title_optional:
|
||||
text: "{{ .Result.title_phase3 }}"
|
||||
filters:
|
||||
- name: append
|
||||
args: "{{ if and (eq .Result.category_group_id \"1\") (and (eq .Result.title_has_season \"NULL\") (eq .Result.title_has_episode \"NULL\")) }} S01{{ else }}{{ end }}"
|
||||
- name: re_replace
|
||||
args: ["^(\\[.+?].+?)\\s*(?<![\\]\\)])((?:\\[|\\(| - ).+)", "{{ if and (and (eq .Result.category_group_id \"1\") (ne .Result.title_has_movie_ova \"YES\")) (and (eq .Result.title_has_season \"NULL\") (eq .Result.title_has_episode \"NULL\")) }}$1 S01 $2{{ else }}$1 $2{{ end }}"]
|
||||
title:
|
||||
text: "{{ if .Config.sonarr_compatibility }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
|
||||
details:
|
||||
|
||||
Reference in New Issue
Block a user