mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-05 13:20:20 -05:00
LanguageProfileId for Language profile filtering
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user