mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-24 16:51:58 +00:00
More default quality profiles
This commit is contained in:
parent
9d6f7efbf2
commit
c08fcaad84
2 changed files with 51 additions and 6 deletions
|
@ -18,7 +18,7 @@ public void Init_should_add_two_profiles()
|
|||
Subject.Handle(new ApplicationStartedEvent());
|
||||
|
||||
Mocker.GetMock<IQualityProfileRepository>()
|
||||
.Verify(v => v.Insert(It.IsAny<QualityProfile>()), Times.Exactly(2));
|
||||
.Verify(v => v.Insert(It.IsAny<QualityProfile>()), Times.Exactly(4));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -58,17 +58,62 @@ public void Handle(ApplicationStartedEvent message)
|
|||
|
||||
_logger.Info("Setting up default quality profiles");
|
||||
|
||||
var sd = new QualityProfile { Name = "SD", Allowed = new List<Quality> { Quality.SDTV, Quality.DVD }, Cutoff = Quality.SDTV };
|
||||
var sd = new QualityProfile
|
||||
{
|
||||
Name = "SD",
|
||||
Allowed = new List<Quality>
|
||||
{
|
||||
Quality.SDTV,
|
||||
Quality.WEBDL480p,
|
||||
Quality.DVD
|
||||
},
|
||||
Cutoff = Quality.SDTV
|
||||
};
|
||||
|
||||
var hd = new QualityProfile
|
||||
var hd720p = new QualityProfile
|
||||
{
|
||||
Name = "HD",
|
||||
Allowed = new List<Quality> { Quality.HDTV720p, Quality.WEBDL720p, Quality.Bluray720p },
|
||||
Name = "HD 720p",
|
||||
Allowed = new List<Quality>
|
||||
{
|
||||
Quality.HDTV720p,
|
||||
Quality.WEBDL720p,
|
||||
Quality.Bluray720p
|
||||
},
|
||||
Cutoff = Quality.HDTV720p
|
||||
};
|
||||
|
||||
|
||||
var hd1080p = new QualityProfile
|
||||
{
|
||||
Name = "HD 1080p",
|
||||
Allowed = new List<Quality>
|
||||
{
|
||||
Quality.HDTV1080p,
|
||||
Quality.WEBDL1080p,
|
||||
Quality.Bluray1080p
|
||||
},
|
||||
Cutoff = Quality.HDTV1080p
|
||||
};
|
||||
|
||||
var hdAll = new QualityProfile
|
||||
{
|
||||
Name = "HD - All",
|
||||
Allowed = new List<Quality>
|
||||
{
|
||||
Quality.HDTV720p,
|
||||
Quality.WEBDL720p,
|
||||
Quality.Bluray720p,
|
||||
Quality.HDTV1080p,
|
||||
Quality.WEBDL1080p,
|
||||
Quality.Bluray1080p
|
||||
},
|
||||
Cutoff = Quality.HDTV720p
|
||||
};
|
||||
|
||||
Add(sd);
|
||||
Add(hd);
|
||||
Add(hd720p);
|
||||
Add(hd1080p);
|
||||
Add(hdAll);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue