Add dlna headers to static responses

This commit is contained in:
Luke Pulverenti
2014-02-03 12:44:13 -05:00
parent 1de89cf272
commit 4205dcac9d
25 changed files with 70 additions and 58 deletions

View File

@@ -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;
}

View File

@@ -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>

View File

@@ -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)

View File

@@ -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>