From da39d9a5bf9656f35501c5e11982240192ce34a2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 27 Apr 2017 14:12:44 -0400 Subject: [PATCH] update folder queries --- .../FileOrganization/EpisodeFileOrganizer.cs | 2 +- .../Library/MusicManager.cs | 85 +++++++------------ .../Entities/Audio/MusicGenre.cs | 2 +- MediaBrowser.Controller/Entities/GameGenre.cs | 2 +- MediaBrowser.Controller/Entities/Genre.cs | 2 +- .../Entities/Movies/BoxSet.cs | 4 +- .../Entities/UserViewBuilder.cs | 29 ++----- MediaBrowser.Controller/Playlists/Playlist.cs | 29 +++---- .../Encoder/EncodingJob.cs | 2 - .../Music/AlbumImageFromSongProvider.cs | 3 +- .../TV/DummySeasonProvider.cs | 4 +- .../TV/MissingEpisodeProvider.cs | 19 +++-- 12 files changed, 69 insertions(+), 114 deletions(-) diff --git a/Emby.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs b/Emby.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs index 0a9c67285..7b64c582a 100644 --- a/Emby.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs +++ b/Emby.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs @@ -470,7 +470,7 @@ namespace Emby.Server.Implementations.FileOrganization return new List(); } - var episodePaths = series.GetRecursiveChildren() + var episodePaths = series.GetRecursiveChildren(i => i is Episode) .OfType() .Where(i => { diff --git a/Emby.Server.Implementations/Library/MusicManager.cs b/Emby.Server.Implementations/Library/MusicManager.cs index 9d07837c6..b15c01125 100644 --- a/Emby.Server.Implementations/Library/MusicManager.cs +++ b/Emby.Server.Implementations/Library/MusicManager.cs @@ -5,6 +5,7 @@ using MediaBrowser.Controller.Playlists; using System; using System.Collections.Generic; using System.Linq; +using MediaBrowser.Model.Querying; namespace Emby.Server.Implementations.Library { @@ -27,53 +28,17 @@ namespace Emby.Server.Implementations.Library return list.Concat(GetInstantMixFromGenres(item.Genres, user)); } - public IEnumerable