cleaned up handling of Unknown quality type.

This commit is contained in:
Keivan Beigi 2013-05-30 18:43:13 -07:00
commit c1bbd0bd5d
5 changed files with 9 additions and 15 deletions

View file

@ -45,18 +45,13 @@ namespace NzbDrone.Core.Qualities
return _qualitySizeRepository.GetByQualityId(qualityId);
}
public void Init()
{
}
public void Handle(ApplicationStartedEvent message)
{
var existing = All();
_logger.Debug("Setting up default quality sizes");
foreach (var quality in Quality.All().Where(q => q.Id > 0))
foreach (var quality in Quality.All())
{
if (!existing.Any(s => s.QualityId == quality.Id))
{