diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-10-24 00:10:31 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-11-14 21:14:21 +0100 |
| commit | b62b0ec2b581369de42c69305773f0edb9d701b4 (patch) | |
| tree | 32ca62e7429f51654b9d22b1be87f2c658535568 /MediaBrowser.Providers/TV | |
| parent | 99e0d46ad93c1f2e62aed67c26b92f256610f1a6 (diff) | |
Fix warnings
Diffstat (limited to 'MediaBrowser.Providers/TV')
| -rw-r--r-- | MediaBrowser.Providers/TV/SeriesMetadataService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/TV/SeriesMetadataService.cs b/MediaBrowser.Providers/TV/SeriesMetadataService.cs index e01c0f483..01c07d633 100644 --- a/MediaBrowser.Providers/TV/SeriesMetadataService.cs +++ b/MediaBrowser.Providers/TV/SeriesMetadataService.cs @@ -121,7 +121,7 @@ namespace MediaBrowser.Providers.TV var seasonNumber = virtualSeason.IndexNumber; // If there's a physical season with the same number or no episodes in the season, delete it if ((seasonNumber.HasValue && physicalSeasonNumbers.Contains(seasonNumber.Value)) - || !virtualSeason.GetEpisodes().Any()) + || virtualSeason.GetEpisodes().Count == 0) { Logger.LogInformation("Removing virtual season {SeasonNumber} in series {SeriesName}", virtualSeason.IndexNumber, series.Name); |
