LanguageProfileId for Language profile filtering

This commit is contained in:
Mark McDowall 2022-06-12 15:17:47 -07:00
parent d5fff15f32
commit 5d976ac657
2 changed files with 2 additions and 1 deletions

View File

@ -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<int> Tags { get; set; }
}

View File

@ -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