Update MediaBrowser.Providers/TV/SeriesMetadataService.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Cody Robibero 2023-06-10 07:04:23 -06:00 committed by GitHub
parent a496da24e3
commit 198b9aa530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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