mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #1688 from MediaBrowser/dev
fixes for episodes directly in series folder
This commit is contained in:
commit
06ee24913b
2 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ namespace MediaBrowser.Providers.TV
|
|||
|
||||
if (hasNewSeasons)
|
||||
{
|
||||
var directoryService = new DirectoryService(_fileSystem);
|
||||
//var directoryService = new DirectoryService(_fileSystem);
|
||||
|
||||
//await series.RefreshMetadata(new MetadataRefreshOptions(directoryService), cancellationToken).ConfigureAwait(false);
|
||||
|
||||
|
@ -163,7 +163,7 @@ namespace MediaBrowser.Providers.TV
|
|||
|
||||
// Season does not have a number
|
||||
// Remove if there are no episodes directly in series without a season number
|
||||
return episodes.All(s => s.ParentIndexNumber.HasValue || !s.IsInSeasonFolder);
|
||||
return episodes.All(s => s.ParentIndexNumber.HasValue || s.IsInSeasonFolder);
|
||||
})
|
||||
.ToList();
|
||||
|
||||
|
|
|
@ -380,7 +380,7 @@ namespace MediaBrowser.Providers.TV
|
|||
|
||||
// Season does not have a number
|
||||
// Remove if there are no episodes directly in series without a season number
|
||||
return i.Season.Series.GetRecursiveChildren().OfType<Episode>().All(s => s.ParentIndexNumber.HasValue || !s.IsInSeasonFolder);
|
||||
return i.Season.Series.GetRecursiveChildren().OfType<Episode>().All(s => s.ParentIndexNumber.HasValue || s.IsInSeasonFolder);
|
||||
})
|
||||
.ToList();
|
||||
|
||||
|
|
Loading…
Reference in a new issue