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

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