From 657097ee1511824960ca39c3b8c6c23bda5a840f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 27 May 2013 21:59:26 -0400 Subject: [PATCH] fixes #296 - Prevent non-movie videos from appearing in Movies view --- MediaBrowser.Api/LibraryService.cs | 3 +- MediaBrowser.Api/UserLibrary/GenresService.cs | 4 +- .../UserLibrary/PersonsService.cs | 4 +- .../UserLibrary/StudiosService.cs | 4 +- .../Entities/Movies/Movie.cs | 5 +- .../Entities/MusicVideo.cs | 42 ++++++++++++++++ .../MediaBrowser.Controller.csproj | 1 + .../MediaInfo/FFProbeVideoInfoProvider.cs | 2 +- .../Providers/Movies/FanArtMovieProvider.cs | 2 +- .../Providers/Movies/MovieDbImagesProvider.cs | 2 +- .../Providers/Movies/MovieDbProvider.cs | 2 +- .../Providers/Movies/MovieProviderFromJson.cs | 9 +++- .../Providers/Movies/MovieProviderFromXml.cs | 9 +++- .../Movies/OpenMovieDatabaseProvider.cs | 2 +- .../Resolvers/BaseVideoResolver.cs | 14 +++++- MediaBrowser.Model/Dto/ItemByNameCounts.cs | 5 ++ MediaBrowser.Model/Dto/ItemCounts.cs | 5 ++ .../Library/Resolvers/Movies/MovieResolver.cs | 49 +++++++++++-------- .../Api/DashboardService.cs | 1 + .../MediaBrowser.WebDashboard.csproj | 6 +++ 20 files changed, 136 insertions(+), 35 deletions(-) create mode 100644 MediaBrowser.Controller/Entities/MusicVideo.cs diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index 4998a122d..ecd9f6fb6 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -185,7 +185,8 @@ namespace MediaBrowser.Api MovieCount = items.OfType().Count(), SeriesCount = items.OfType().Count(), SongCount = items.OfType