mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Add dlna headers to static responses
This commit is contained in:
@@ -133,7 +133,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
// Dummy up the original url
|
||||
var url = item.ServiceName + recordingInfo.Id;
|
||||
|
||||
await _providerManager.SaveImage((BaseItem)item, imageStream, contentType, ImageType.Primary, null, url, cancellationToken).ConfigureAwait(false);
|
||||
await _providerManager.SaveImage((BaseItem)item, imageStream, contentType, ImageType.Primary, null, cancellationToken).ConfigureAwait(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -320,6 +320,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
}
|
||||
}
|
||||
|
||||
private readonly Task _cachedTask = Task.FromResult(true);
|
||||
/// <summary>
|
||||
/// Saves the critic reviews.
|
||||
/// </summary>
|
||||
@@ -334,7 +335,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
|
||||
_jsonSerializer.SerializeToFile(criticReviews.ToList(), path);
|
||||
|
||||
return Task.FromResult(true);
|
||||
return _cachedTask;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -91,10 +91,11 @@ namespace MediaBrowser.Server.Implementations.Roku
|
||||
}, cancellationToken);
|
||||
}
|
||||
|
||||
private readonly Task _cachedTask = Task.FromResult(true);
|
||||
public Task SendLibraryUpdateInfo(LibraryUpdateInfo info, CancellationToken cancellationToken)
|
||||
{
|
||||
// Roku probably won't care about this
|
||||
return Task.FromResult(true);
|
||||
return _cachedTask;
|
||||
}
|
||||
|
||||
public Task SendRestartRequiredNotification(CancellationToken cancellationToken)
|
||||
@@ -110,7 +111,7 @@ namespace MediaBrowser.Server.Implementations.Roku
|
||||
public Task SendUserDataChangeInfo(UserDataChangeInfo info, CancellationToken cancellationToken)
|
||||
{
|
||||
// Roku probably won't care about this
|
||||
return Task.FromResult(true);
|
||||
return _cachedTask;
|
||||
}
|
||||
|
||||
public Task SendServerShutdownNotification(CancellationToken cancellationToken)
|
||||
|
||||
@@ -81,7 +81,8 @@ namespace MediaBrowser.Server.Implementations.WebSocket
|
||||
OnReceive(json);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private readonly Task _cachedTask = Task.FromResult(true);
|
||||
/// <summary>
|
||||
/// Sends the async.
|
||||
/// </summary>
|
||||
@@ -94,7 +95,7 @@ namespace MediaBrowser.Server.Implementations.WebSocket
|
||||
{
|
||||
UserContext.Send(bytes);
|
||||
|
||||
return Task.FromResult(true);
|
||||
return _cachedTask;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user