LanguageProfileId for Language profile filtering

pull/5062/head
Mark McDowall 2 years ago
parent d5fff15f32
commit 5d976ac657

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

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

Loading…
Cancel
Save