added toggles for metadata settings

This commit is contained in:
Luke Pulverenti
2014-02-10 23:55:01 -05:00
parent cf9ef0e43d
commit 17bf59dfe3
29 changed files with 203 additions and 98 deletions

View File

@@ -793,10 +793,15 @@ namespace MediaBrowser.Server.Implementations.LiveTv
double percent = numComplete;
percent /= allChannelsList.Count;
progress.Report(90 * percent + 10);
progress.Report(80 * percent + 10);
}
_programs = programs.ToDictionary(i => i.Id);
// Load these now which will prefetch metadata
await GetRecordings(new RecordingQuery(), cancellationToken).ConfigureAwait(false);
progress.Report(100);
}
private double GetGuideDays(int channelCount)

View File

@@ -210,7 +210,7 @@ namespace MediaBrowser.Server.Implementations.ServerManager
}
catch (Exception ex)
{
_logger.ErrorException("{0} failed processing WebSocket message {1}", ex, i.GetType().Name, result.MessageType);
_logger.ErrorException("{0} failed processing WebSocket message {1}", ex, i.GetType().Name, result.MessageType ?? string.Empty);
}
}));