mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
simplified quality fixed some broken tests
This commit is contained in:
parent
764f67f8e8
commit
ca27c75df5
10 changed files with 47 additions and 89 deletions
|
@ -1,16 +0,0 @@
|
|||
using SubSonic.SqlGeneration.Schema;
|
||||
|
||||
namespace NzbDrone.Core.Repository.Quality
|
||||
{
|
||||
public class AllowedQuality
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int ProfileId { get; set; }
|
||||
public int Order { get; set; }
|
||||
public bool MarkComplete { get; set; }
|
||||
public QualityTypes Quality { get; set; }
|
||||
|
||||
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
||||
public virtual QualityProfile QualityProfile { get; private set; }
|
||||
}
|
||||
}
|
|
@ -12,10 +12,9 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
public string Name { get; set; }
|
||||
public bool UserProfile { get; set; } //Allows us to tell the difference between default and user profiles
|
||||
|
||||
[SubSonicToManyRelation]
|
||||
public virtual List<AllowedQuality> Allowed { get; private set; }
|
||||
public List<QualityTypes> Allowed { get; set; }
|
||||
public QualityTypes Cutoff { get; set; }
|
||||
|
||||
|
||||
[SubSonicIgnore]
|
||||
public List<AllowedQuality> AllowedQualities { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,10 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
/// </summary>
|
||||
DVD = 2,
|
||||
/// <summary>
|
||||
/// SD File (HD Source)
|
||||
/// </summary>
|
||||
BDRip = 2,
|
||||
/// <summary>
|
||||
/// HD File (HDTV Source)
|
||||
/// </summary>
|
||||
HDTV = 3,
|
||||
|
@ -27,12 +31,9 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
/// </summary>
|
||||
WEBDL = 4,
|
||||
/// <summary>
|
||||
/// 720P HD File (Blu-ray Source)
|
||||
/// HD File (Blu-ray Source could be 1080p or 720p)
|
||||
/// </summary>
|
||||
Bluray720p = 5,
|
||||
/// <summary>
|
||||
/// 1080P HD File (Blu-ray Source)
|
||||
/// </summary>
|
||||
Bluray1080p = 6
|
||||
Bluray = 5,
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue