simplified quality fixed some broken tests

This commit is contained in:
Keivan 2011-02-03 11:47:51 -08:00
commit ca27c75df5
10 changed files with 47 additions and 89 deletions

View file

@ -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; }
}
}

View file

@ -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; }
}
}

View file

@ -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,
}
}