mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-12 18:50:23 +01:00
redirect to item page when only one new item
This commit is contained in:
@@ -123,14 +123,10 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
{
|
||||
AddDlnaHeaders(state, responseHeaders, true);
|
||||
|
||||
try
|
||||
using (state)
|
||||
{
|
||||
return GetStaticRemoteStreamResult(state, responseHeaders, isHeadRequest).Result;
|
||||
}
|
||||
finally
|
||||
{
|
||||
state.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
if (request.Static && state.InputProtocol != MediaProtocol.File)
|
||||
@@ -151,14 +147,10 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
{
|
||||
var contentType = state.GetMimeType(state.MediaPath);
|
||||
|
||||
try
|
||||
using (state)
|
||||
{
|
||||
return ResultFactory.GetStaticFileResult(Request, state.MediaPath, contentType, FileShare.Read, responseHeaders, isHeadRequest);
|
||||
}
|
||||
finally
|
||||
{
|
||||
state.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
// Not static but transcode cache file exists
|
||||
|
||||
Reference in New Issue
Block a user