mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
simplified quality fixed some broken tests
This commit is contained in:
@@ -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,
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user