From f04a203faca07899e022dae0c56b6353c26aa9ae Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 25 Sep 2019 13:08:22 +0100 Subject: [PATCH] Removed the lanuage profile from the Lidarr integration --- src/Ombi.Api.Lidarr/ILidarrApi.cs | 1 - src/Ombi.Api.Lidarr/LidarrApi.cs | 7 ------- src/Ombi.Api.Lidarr/Models/ArtistAdd.cs | 1 - .../Models/LanguageProfiles.cs | 8 -------- src/Ombi.Core/Senders/MusicSender.cs | 1 - .../Models/External/LidarrSettings.cs | 1 - .../services/applications/lidarr.service.ts | 3 --- .../app/settings/lidarr/lidarr.component.html | 16 --------------- .../app/settings/lidarr/lidarr.component.ts | 20 ------------------- .../Controllers/External/LidarrController.cs | 10 ---------- 10 files changed, 68 deletions(-) delete mode 100644 src/Ombi.Api.Lidarr/Models/LanguageProfiles.cs diff --git a/src/Ombi.Api.Lidarr/ILidarrApi.cs b/src/Ombi.Api.Lidarr/ILidarrApi.cs index 826cfdec3..b542ff0a0 100644 --- a/src/Ombi.Api.Lidarr/ILidarrApi.cs +++ b/src/Ombi.Api.Lidarr/ILidarrApi.cs @@ -20,7 +20,6 @@ namespace Ombi.Api.Lidarr Task MontiorAlbum(int albumId, string apiKey, string baseUrl); Task> GetAllAlbumsByArtistId(int artistId, string apiKey, string baseUrl); Task> GetMetadataProfile(string apiKey, string baseUrl); - Task> GetLanguageProfile(string apiKey, string baseUrl); Task Status(string apiKey, string baseUrl); Task AlbumSearch(int[] albumIds, string apiKey, string baseUrl); Task AlbumInformation(string albumId, string apiKey, string baseUrl); diff --git a/src/Ombi.Api.Lidarr/LidarrApi.cs b/src/Ombi.Api.Lidarr/LidarrApi.cs index 0f03aa1b0..dd589c64d 100644 --- a/src/Ombi.Api.Lidarr/LidarrApi.cs +++ b/src/Ombi.Api.Lidarr/LidarrApi.cs @@ -158,13 +158,6 @@ namespace Ombi.Api.Lidarr return Api.Request>(request); } - public Task> GetLanguageProfile(string apiKey, string baseUrl) - { - var request = new Request($"{ApiVersion}/languageprofile", baseUrl, HttpMethod.Get); - AddHeaders(request, apiKey); - return Api.Request>(request); - } - public Task> GetMetadataProfile(string apiKey, string baseUrl) { var request = new Request($"{ApiVersion}/metadataprofile", baseUrl, HttpMethod.Get); diff --git a/src/Ombi.Api.Lidarr/Models/ArtistAdd.cs b/src/Ombi.Api.Lidarr/Models/ArtistAdd.cs index 65aec3ac8..e292e8905 100644 --- a/src/Ombi.Api.Lidarr/Models/ArtistAdd.cs +++ b/src/Ombi.Api.Lidarr/Models/ArtistAdd.cs @@ -17,7 +17,6 @@ namespace Ombi.Api.Lidarr.Models public Image[] images { get; set; } public string remotePoster { get; set; } public int qualityProfileId { get; set; } - public int languageProfileId { get; set; } public int metadataProfileId { get; set; } public bool albumFolder { get; set; } public bool monitored { get; set; } diff --git a/src/Ombi.Api.Lidarr/Models/LanguageProfiles.cs b/src/Ombi.Api.Lidarr/Models/LanguageProfiles.cs deleted file mode 100644 index f503fe33f..000000000 --- a/src/Ombi.Api.Lidarr/Models/LanguageProfiles.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Ombi.Api.Lidarr.Models -{ - public class LanguageProfiles - { - public string name { get; set; } - public int id { get; set; } - } -} \ No newline at end of file diff --git a/src/Ombi.Core/Senders/MusicSender.cs b/src/Ombi.Core/Senders/MusicSender.cs index 0e9db9192..04544c6be 100644 --- a/src/Ombi.Core/Senders/MusicSender.cs +++ b/src/Ombi.Core/Senders/MusicSender.cs @@ -110,7 +110,6 @@ namespace Ombi.Core.Senders artistName = model.ArtistName, cleanName = model.ArtistName.ToLowerInvariant().RemoveSpaces(), images = new Image[] { }, - languageProfileId = settings.LanguageProfileId, links = new Link[] {}, metadataProfileId = settings.MetadataProfileId, qualityProfileId = qualityToUse, diff --git a/src/Ombi.Settings/Settings/Models/External/LidarrSettings.cs b/src/Ombi.Settings/Settings/Models/External/LidarrSettings.cs index 3a37b7d43..5f2c5722d 100644 --- a/src/Ombi.Settings/Settings/Models/External/LidarrSettings.cs +++ b/src/Ombi.Settings/Settings/Models/External/LidarrSettings.cs @@ -9,7 +9,6 @@ namespace Ombi.Settings.Settings.Models.External public string DefaultQualityProfile { get; set; } public string DefaultRootPath { get; set; } public bool AlbumFolder { get; set; } - public int LanguageProfileId { get; set; } public int MetadataProfileId { get; set; } public bool AddOnly { get; set; } } diff --git a/src/Ombi/ClientApp/app/services/applications/lidarr.service.ts b/src/Ombi/ClientApp/app/services/applications/lidarr.service.ts index 9ef36357a..b0cdf5a86 100644 --- a/src/Ombi/ClientApp/app/services/applications/lidarr.service.ts +++ b/src/Ombi/ClientApp/app/services/applications/lidarr.service.ts @@ -29,8 +29,5 @@ export class LidarrService extends ServiceHelpers { public getMetadataProfiles(settings: ILidarrSettings): Observable { return this.http.post(`${this.url}/Metadata/`, JSON.stringify(settings), {headers: this.headers}); - } - public getLanguages(settings: ILidarrSettings): Observable { - return this.http.post(`${this.url}/Langauges/`,JSON.stringify(settings), {headers: this.headers}); } } diff --git a/src/Ombi/ClientApp/app/settings/lidarr/lidarr.component.html b/src/Ombi/ClientApp/app/settings/lidarr/lidarr.component.html index 5e898e719..2a1643dc6 100644 --- a/src/Ombi/ClientApp/app/settings/lidarr/lidarr.component.html +++ b/src/Ombi/ClientApp/app/settings/lidarr/lidarr.component.html @@ -84,22 +84,6 @@ - -
- -
- - - -
-
- -