dlna fixes

This commit is contained in:
Luke Pulverenti
2015-02-04 06:56:48 -05:00
parent 8b7ade8e9d
commit 6c3209e3f9
35 changed files with 136 additions and 92 deletions

View File

@@ -308,11 +308,11 @@ namespace MediaBrowser.Server.Implementations.Sync
return new[] { item };
}
public async Task EnsureSyncJobs(CancellationToken cancellationToken)
public async Task EnsureSyncJobItems(CancellationToken cancellationToken)
{
var jobResult = _syncRepo.GetJobs(new SyncJobQuery
{
IsCompleted = false
SyncNewContent = true
});
foreach (var job in jobResult.Items)
@@ -328,7 +328,7 @@ namespace MediaBrowser.Server.Implementations.Sync
public async Task Sync(IProgress<double> progress, CancellationToken cancellationToken)
{
await EnsureSyncJobs(cancellationToken).ConfigureAwait(false);
await EnsureSyncJobItems(cancellationToken).ConfigureAwait(false);
// If it already has a converting status then is must have been aborted during conversion
var result = _syncRepo.GetJobItems(new SyncJobItemQuery