The Free Software Media System - Server Backend & API
removed pagebeforeshowready
Luke Pulverenti30c8937e3673
diff --git a/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs b/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.csindex a5c69317b7..9106fa0598 100644--- a/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs@@ -235,62 +235,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer}}- /// <summary>- /// Writes to async.- /// </summary>- /// <param name="responseStream">The response stream.</param>- /// <returns>Task.</returns>- private async Task WriteToAsync(Stream responseStream)- {- try- {- // Headers only- if (IsHeadRequest)- {- return;- }-- using (var source = SourceStream)- {- // If the requested range is "0-", we can optimize by just doing a stream copy- if (RangeEnd >= TotalContentLength - 1)- {- await source.CopyToAsync(responseStream, BufferSize).ConfigureAwait(false);- }- else- {- await CopyToAsyncInternal(source, responseStream, Convert.ToInt32(RangeLength), CancellationToken.None).ConfigureAwait(false);- }- }- }- finally- {- if (OnComplete != null)- {- OnComplete();- }- }- }-- private async Task CopyToAsyncInternal(Stream source, Stream destination, int copyLength, CancellationToken cancellationToken)- {- var array = new byte[BufferSize];- int count;- while ((count = await source.ReadAsync(array, 0, array.Length, cancellationToken).ConfigureAwait(false)) != 0)- {- var bytesToCopy = Math.Min(count, copyLength);-- await destination.WriteAsync(array, 0, bytesToCopy, cancellationToken).ConfigureAwait(false);-- copyLength -= bytesToCopy;-- if (copyLength <= 0)- {- break;- }- }- }-public string ContentType { get; set; }public IRequest RequestContext { get; set; }diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csprojindex bbdc702afb..6fdcb393c0 100644--- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj+++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj@@ -324,6 +324,9 @@<Content Include="dashboard-ui\thirdparty\emby-icons.html"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jqm.popup.css">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jqm.slider.css"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -2664,6 +2667,9 @@<Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jqm.table.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jqm.popup.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><None Include="dashboard-ui\thirdparty\jquerymobile-1.4.5\jquery.mobile-1.4.5.min.map"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>