From 5d976ac657ece91aa7d6a4397156846abb611175 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 12 Jun 2022 15:17:47 -0700 Subject: [PATCH] LanguageProfileId for Language profile filtering --- src/NzbDrone.Core/ImportLists/Sonarr/SonarrAPIResource.cs | 1 + src/NzbDrone.Core/ImportLists/Sonarr/SonarrImport.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/ImportLists/Sonarr/SonarrAPIResource.cs b/src/NzbDrone.Core/ImportLists/Sonarr/SonarrAPIResource.cs index 2ba89f52b..f34da0d8d 100644 --- a/src/NzbDrone.Core/ImportLists/Sonarr/SonarrAPIResource.cs +++ b/src/NzbDrone.Core/ImportLists/Sonarr/SonarrAPIResource.cs @@ -14,6 +14,7 @@ namespace NzbDrone.Core.ImportLists.Sonarr public int Year { get; set; } public string TitleSlug { get; set; } public int QualityProfileId { get; set; } + public int LanguageProfileId { get; set; } public HashSet Tags { get; set; } } diff --git a/src/NzbDrone.Core/ImportLists/Sonarr/SonarrImport.cs b/src/NzbDrone.Core/ImportLists/Sonarr/SonarrImport.cs index 540cb822f..052913d97 100644 --- a/src/NzbDrone.Core/ImportLists/Sonarr/SonarrImport.cs +++ b/src/NzbDrone.Core/ImportLists/Sonarr/SonarrImport.cs @@ -39,7 +39,7 @@ namespace NzbDrone.Core.ImportLists.Sonarr foreach (var item in remoteSeries) { if ((!Settings.ProfileIds.Any() || Settings.ProfileIds.Contains(item.QualityProfileId)) && - (!Settings.LanguageProfileIds.Any() || Settings.LanguageProfileIds.Contains(item.QualityProfileId)) && + (!Settings.LanguageProfileIds.Any() || Settings.LanguageProfileIds.Contains(item.LanguageProfileId)) && (!Settings.TagIds.Any() || Settings.TagIds.Any(tagId => item.Tags.Any(itemTagId => itemTagId == tagId)))) { series.Add(new ImportListItemInfo