diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-03 12:44:13 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-03 12:44:13 -0500 |
| commit | 4205dcac9db652a2576f965d80a900bd390f125c (patch) | |
| tree | d931a2c6e4af128f218dec3100141888f7fbd551 /MediaBrowser.Server.Implementations | |
| parent | 1de89cf27203b7d3df488e2c4785df6205e9123a (diff) | |
Add dlna headers to static responses
Diffstat (limited to 'MediaBrowser.Server.Implementations')
4 files changed, 9 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/RecordingImageProvider.cs b/MediaBrowser.Server.Implementations/LiveTv/RecordingImageProvider.cs index ce7c1286b..1f5610f67 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/RecordingImageProvider.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/RecordingImageProvider.cs @@ -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; } diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs index 6b463bbdf..71cf58785 100644 --- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs +++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs @@ -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> diff --git a/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs b/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs index b9e8b7950..0e2f9e1b5 100644 --- a/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs +++ b/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs @@ -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) diff --git a/MediaBrowser.Server.Implementations/WebSocket/AlchemyWebSocket.cs b/MediaBrowser.Server.Implementations/WebSocket/AlchemyWebSocket.cs index de998254c..2918c7ecd 100644 --- a/MediaBrowser.Server.Implementations/WebSocket/AlchemyWebSocket.cs +++ b/MediaBrowser.Server.Implementations/WebSocket/AlchemyWebSocket.cs @@ -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> |
