mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
cleaned up handling of Unknown quality type.
This commit is contained in:
parent
3c53e6009d
commit
c1bbd0bd5d
5 changed files with 9 additions and 15 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue