From 124754a04f1a85fc949e229e45bfd67e5ac6ff62 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 17 Nov 2014 21:48:22 -0500 Subject: [PATCH] use new naming project --- MediaBrowser.Api/ApiEntryPoint.cs | 2 +- .../Playback/Hls/BaseHlsService.cs | 2 +- .../Playback/Hls/DynamicHlsService.cs | 2 - .../Playback/Hls/MpegDashService.cs | 2 - .../BaseProgressiveStreamingService.cs | 1 + MediaBrowser.Controller/Entities/Folder.cs | 1 + MediaBrowser.Controller/Entities/UserView.cs | 1 - MediaBrowser.Controller/Entities/Video.cs | 29 +------ .../Library/ILibraryManager.cs | 25 +++--- .../Providers/DirectoryService.cs | 6 ++ MediaBrowser.Model/Entities/CollectionType.cs | 2 - .../BoxSets/MovieDbBoxSetProvider.cs | 9 ++- .../MediaBrowser.Providers.csproj | 5 +- .../Movies/GenericMovieDbInfo.cs | 7 +- .../Movies/MovieDbProvider.cs | 9 ++- .../Movies/MovieDbSearch.cs | 5 +- .../Omdb/OmdbItemProvider.cs | 7 +- .../TV/MovieDbSeriesProvider.cs | 6 +- MediaBrowser.Providers/packages.config | 2 +- .../HttpServer/StreamWriter.cs | 5 +- .../Library/LibraryManager.cs | 49 ++++++++--- .../Library/Resolvers/Movies/MovieResolver.cs | 81 +++++++------------ ...MediaBrowser.Server.Implementations.csproj | 2 +- .../packages.config | 2 +- .../FFMpeg/FFmpegValidator.cs | 54 ++++++++++--- 25 files changed, 167 insertions(+), 149 deletions(-) diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index c01f59202a..d386373d4b 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -273,7 +273,7 @@ namespace MediaBrowser.Api { if (job.Type == TranscodingJobType.Progressive) { - const int timerDuration = 1500; + const int timerDuration = 1000; if (job.KillTimer == null) { diff --git a/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs b/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs index 613039d23a..c963636fdf 100644 --- a/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs @@ -107,7 +107,7 @@ namespace MediaBrowser.Api.Playback.Hls throw; } - var waitCount = isLive ? 3 : 2; + var waitCount = isLive ? 2 : 2; await WaitForMinimumSegmentCount(playlist, waitCount, cancellationTokenSource.Token).ConfigureAwait(false); } } diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs index 97565cdc3d..0b32ae0529 100644 --- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs @@ -120,7 +120,6 @@ namespace MediaBrowser.Api.Playback.Hls if (File.Exists(segmentPath)) { - job = ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlistPath, TranscodingJobType); return await GetSegmentResult(playlistPath, segmentPath, index, segmentLength, job, cancellationToken).ConfigureAwait(false); } @@ -129,7 +128,6 @@ namespace MediaBrowser.Api.Playback.Hls { if (File.Exists(segmentPath)) { - job = ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlistPath, TranscodingJobType); return await GetSegmentResult(playlistPath, segmentPath, index, segmentLength, job, cancellationToken).ConfigureAwait(false); } else diff --git a/MediaBrowser.Api/Playback/Hls/MpegDashService.cs b/MediaBrowser.Api/Playback/Hls/MpegDashService.cs index 3c1f07c5f1..260a4c467e 100644 --- a/MediaBrowser.Api/Playback/Hls/MpegDashService.cs +++ b/MediaBrowser.Api/Playback/Hls/MpegDashService.cs @@ -308,7 +308,6 @@ namespace MediaBrowser.Api.Playback.Hls if (File.Exists(segmentPath)) { - job = ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlistPath, TranscodingJobType); return await GetSegmentResult(playlistPath, segmentPath, index, segmentLength, job, cancellationToken).ConfigureAwait(false); } @@ -317,7 +316,6 @@ namespace MediaBrowser.Api.Playback.Hls { if (File.Exists(segmentPath)) { - job = ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlistPath, TranscodingJobType); return await GetSegmentResult(playlistPath, segmentPath, index, segmentLength, job, cancellationToken).ConfigureAwait(false); } else diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs index 6bec387d42..746426c8e9 100644 --- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs +++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs @@ -421,6 +421,7 @@ namespace MediaBrowser.Api.Playback.Progressive if (!File.Exists(outputPath)) { job = await StartFfMpeg(state, outputPath, cancellationTokenSource).ConfigureAwait(false); + job.ActiveRequestCount++; } else { diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index d0f2e9dfae..34f52aac5d 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -472,6 +472,7 @@ namespace MediaBrowser.Controller.Entities } else { + newItems.Add(child); validChildren.Add(child); } } diff --git a/MediaBrowser.Controller/Entities/UserView.cs b/MediaBrowser.Controller/Entities/UserView.cs index 4b29f49d8d..7674dc1d38 100644 --- a/MediaBrowser.Controller/Entities/UserView.cs +++ b/MediaBrowser.Controller/Entities/UserView.cs @@ -61,7 +61,6 @@ namespace MediaBrowser.Controller.Entities { var standaloneTypes = new List { - CollectionType.AdultVideos, CollectionType.Books, CollectionType.HomeVideos, CollectionType.Photos, diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs index f2484aab8a..1c59b8bfb2 100644 --- a/MediaBrowser.Controller/Entities/Video.cs +++ b/MediaBrowser.Controller/Entities/Video.cs @@ -337,34 +337,7 @@ namespace MediaBrowser.Controller.Entities /// IEnumerable{Video}. private IEnumerable