@@ -13,31 +13,25 @@ with lib; let
1313 sonarr_main = {
1414 base_url = "http://127.0.0.1:${ toString config . nixflix . sonarr . config . hostConfig . port } ${ toString config . nixflix . sonarr . config . hostConfig . urlBase } " ;
1515 api_key . _secret = "/run/credentials/recyclarr.service/sonarr-api_key" ;
16-
17- quality_profiles = [
18- {
19- name = cfg . sonarr . qualityProfile ;
20- upgrade = {
21- allowed = true ;
22- until_quality = cfg . sonarr . upgradeUntilQuality ;
23- } ;
24- qualities =
25- [
26- { name = cfg . sonarr . qualityProfile ; }
27- ]
28- ++ optional ( cfg . sonarr . qualityProfile != cfg . sonarr . upgradeUntilQuality ) {
29- name = cfg . sonarr . upgradeUntilQuality ;
30- } ;
31- }
32- ] ;
16+ media_naming = {
17+ series = "default" ;
18+ season = "default" ;
19+ episodes = {
20+ rename = true ;
21+ standard = "default" ;
22+ daily = "default" ;
23+ anime = "default" ;
24+ } ;
25+ } ;
3326
3427 include =
3528 [
3629 { template = "sonarr-quality-definition-series" ; }
37- { template = "sonarr-v4-quality-profile-web-1080p " ; }
38- { template = "sonarr-v4-custom-formats-web-1080p " ; }
30+ { template = "sonarr-v4-quality-profile-web-2160p-alternative " ; }
31+ { template = "sonarr-v4-custom-formats-web-2160p " ; }
3932 ]
4033 ++ optionals cfg . sonarr . anime . enable [
34+ { template = "sonarr-v4-quality-definition-anime" ; }
4135 { template = "sonarr-v4-quality-profile-anime" ; }
4236 { template = "sonarr-v4-custom-formats-anime" ; }
4337 ] ;
@@ -50,31 +44,46 @@ with lib; let
5044 radarr_main = {
5145 base_url = "http://127.0.0.1:${ toString config . nixflix . radarr . config . hostConfig . port } ${ toString config . nixflix . radarr . config . hostConfig . urlBase } " ;
5246 api_key . _secret = "/run/credentials/recyclarr.service/radarr-api_key" ;
47+ media_naming = {
48+ rename = true ;
49+ standard = "default" ;
50+ } ;
5351
5452 quality_profiles = [
5553 {
56- name = cfg . radarr . qualityProfile ;
54+ name = "UHD Bluray + WEB" ;
55+ reset_unmatched_scores . enabled = true ;
5756 upgrade = {
5857 allowed = true ;
59- until_quality = cfg . radarr . upgradeUntilQuality ;
58+ until_quality = "Bluray-2160p" ;
59+ until_score = 10000 ;
6060 } ;
61- qualities =
62- [
63- { name = cfg . radarr . qualityProfile ; }
64- ]
65- ++ optional ( cfg . radarr . qualityProfile != cfg . radarr . upgradeUntilQuality ) {
66- name = cfg . radarr . upgradeUntilQuality ;
67- } ;
61+ min_format_score = 0 ;
62+ quality_sort = "top" ;
63+ qualities = [
64+ { name = "Bluray-2160p" ; }
65+ {
66+ name = "WEB-2160p" ;
67+ qualities = [ "WEBDL-2160p" "WEBRip-2160p" ] ;
68+ }
69+ { name = "Bluray-1080p" ; }
70+ {
71+ name = "WEB-1080p" ;
72+ qualities = [ "WEBDL-1080p" "WEBRip-1080p" ] ;
73+ }
74+ { name = "Bluray-720p" ; }
75+ ] ;
6876 }
6977 ] ;
7078
7179 include =
7280 [
7381 { template = "radarr-quality-definition-movie" ; }
74- { template = "radarr-quality-profile-uhd-bluray-web " ; }
82+ { template = "radarr-quality-profile-sqp-1-2160p-default " ; }
7583 { template = "radarr-custom-formats-uhd-bluray-web" ; }
7684 ]
7785 ++ optionals cfg . radarr . anime . enable [
86+ { template = "radarr-quality-definition-anime" ; }
7887 { template = "radarr-quality-profile-anime" ; }
7988 { template = "radarr-custom-formats-anime" ; }
8089 ] ;
@@ -121,18 +130,6 @@ in {
121130 description = "Whether to sync Sonarr configuration via Recyclarr" ;
122131 } ;
123132
124- qualityProfile = mkOption {
125- type = types . str ;
126- default = "UHD-4K" ;
127- description = "Quality profile to use for Sonarr" ;
128- } ;
129-
130- upgradeUntilQuality = mkOption {
131- type = types . str ;
132- default = "HD-1080p" ;
133- description = "Quality level to stop upgrading at for Sonarr" ;
134- } ;
135-
136133 anime = {
137134 enable = mkOption {
138135 type = types . bool ;
@@ -154,18 +151,6 @@ in {
154151 description = "Whether to sync Radarr configuration via Recyclarr" ;
155152 } ;
156153
157- qualityProfile = mkOption {
158- type = types . str ;
159- default = "UHD-4K" ;
160- description = "Quality profile to use for Radarr" ;
161- } ;
162-
163- upgradeUntilQuality = mkOption {
164- type = types . str ;
165- default = "UHD-4K" ;
166- description = "Quality level to stop upgrading at for Radarr" ;
167- } ;
168-
169154 anime = {
170155 enable = mkOption {
171156 type = types . bool ;
0 commit comments