From 4fafdb2cd2a24b90a9a76bad156c188c3350507d Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 3 Jul 2023 14:58:57 +0300 Subject: [PATCH] Add x265 categories for Movies and TV in Newznab --- .../Applications/Radarr/RadarrSettings.cs | 2 +- .../Applications/Sonarr/SonarrSettings.cs | 2 +- src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Applications/Radarr/RadarrSettings.cs b/src/NzbDrone.Core/Applications/Radarr/RadarrSettings.cs index 030c89244..3736b38f2 100644 --- a/src/NzbDrone.Core/Applications/Radarr/RadarrSettings.cs +++ b/src/NzbDrone.Core/Applications/Radarr/RadarrSettings.cs @@ -25,7 +25,7 @@ namespace NzbDrone.Core.Applications.Radarr { ProwlarrUrl = "http://localhost:9696"; BaseUrl = "http://localhost:7878"; - SyncCategories = new[] { 2000, 2010, 2020, 2030, 2040, 2045, 2050, 2060, 2070, 2080 }; + SyncCategories = new[] { 2000, 2010, 2020, 2030, 2040, 2045, 2050, 2060, 2070, 2080, 2090 }; } [FieldDefinition(0, Label = "Prowlarr Server", HelpText = "Prowlarr server URL as Radarr sees it, including http(s)://, port, and urlbase if needed", Placeholder = "http://localhost:9696")] diff --git a/src/NzbDrone.Core/Applications/Sonarr/SonarrSettings.cs b/src/NzbDrone.Core/Applications/Sonarr/SonarrSettings.cs index f859fa917..9c31df18c 100644 --- a/src/NzbDrone.Core/Applications/Sonarr/SonarrSettings.cs +++ b/src/NzbDrone.Core/Applications/Sonarr/SonarrSettings.cs @@ -24,7 +24,7 @@ namespace NzbDrone.Core.Applications.Sonarr { ProwlarrUrl = "http://localhost:9696"; BaseUrl = "http://localhost:8989"; - SyncCategories = new[] { 5000, 5010, 5020, 5030, 5040, 5045, 5050 }; + SyncCategories = new[] { 5000, 5010, 5020, 5030, 5040, 5045, 5050, 5090 }; AnimeSyncCategories = new[] { 5070 }; } diff --git a/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs b/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs index bc72b836c..9e22e231d 100644 --- a/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs +++ b/src/NzbDrone.Core/Indexers/NewznabStandardCategory.cs @@ -35,6 +35,7 @@ namespace NzbDrone.Core.Indexers public static readonly IndexerCategory Movies3D = new (2060, "Movies/3D"); public static readonly IndexerCategory MoviesDVD = new (2070, "Movies/DVD"); public static readonly IndexerCategory MoviesWEBDL = new (2080, "Movies/WEB-DL"); + public static readonly IndexerCategory Moviesx265 = new (2090, "Movies/x265"); public static readonly IndexerCategory Audio = new (3000, "Audio"); public static readonly IndexerCategory AudioMP3 = new (3010, "Audio/MP3"); @@ -63,6 +64,7 @@ namespace NzbDrone.Core.Indexers public static readonly IndexerCategory TVSport = new (5060, "TV/Sport"); public static readonly IndexerCategory TVAnime = new (5070, "TV/Anime"); public static readonly IndexerCategory TVDocumentary = new (5080, "TV/Documentary"); + public static readonly IndexerCategory TVx265 = new (5090, "TV/x265"); public static readonly IndexerCategory XXX = new (6000, "XXX"); public static readonly IndexerCategory XXXDVD = new (6010, "XXX/DVD"); @@ -128,6 +130,7 @@ namespace NzbDrone.Core.Indexers Movies3D, MoviesDVD, MoviesWEBDL, + Moviesx265, Audio, AudioMP3, AudioVideo, @@ -153,6 +156,7 @@ namespace NzbDrone.Core.Indexers TVSport, TVAnime, TVDocumentary, + TVx265, XXX, XXXDVD, XXXWMV, @@ -211,7 +215,8 @@ namespace NzbDrone.Core.Indexers MoviesBluRay, Movies3D, MoviesDVD, - MoviesWEBDL + MoviesWEBDL, + Moviesx265 }); Audio.SubCategories.AddRange( new List @@ -245,7 +250,8 @@ namespace NzbDrone.Core.Indexers TVOther, TVSport, TVAnime, - TVDocumentary + TVDocumentary, + TVx265 }); XXX.SubCategories.AddRange( new List