Update MediaBrowser.Providers/TV/SeriesMetadataService.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
a496da24e3
commit
198b9aa530
|
@ -76,10 +76,9 @@ namespace MediaBrowser.Providers.TV
|
||||||
}
|
}
|
||||||
else if (targetSeasonNames.Count != sourceSeasonNames.Count || !sourceSeasonNames.Keys.All(targetSeasonNames.ContainsKey))
|
else if (targetSeasonNames.Count != sourceSeasonNames.Count || !sourceSeasonNames.Keys.All(targetSeasonNames.ContainsKey))
|
||||||
{
|
{
|
||||||
foreach (var season in sourceSeasonNames)
|
foreach (var (number, name) in sourceSeasonNames)
|
||||||
{
|
{
|
||||||
var seasonNumber = season.Key;
|
targetSeasonNames.TryAdd(number, name);
|
||||||
targetSeasonNames.TryAdd(seasonNumber, season.Value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user