Prevent double iterating over all seasons (#11700)
This commit is contained in:
parent
832e27a8fb
commit
5200633574
|
@ -98,7 +98,7 @@ namespace MediaBrowser.Providers.TV
|
|||
targetItem.SetSeasonName(number, name);
|
||||
}
|
||||
}
|
||||
else if (!sourceSeasonNames.Keys.All(targetSeasonNames.ContainsKey))
|
||||
else
|
||||
{
|
||||
var newSeasons = sourceSeasonNames.Where(s => !targetSeasonNames.ContainsKey(s.Key));
|
||||
foreach (var (number, name) in newSeasons)
|
||||
|
|
Loading…
Reference in New Issue
Block a user