1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-31 03:11:07 +02:00

Added in Bluray 1080P Quality Type.

Added additional columns for AllowedQuality
This commit is contained in:
markus101 2011-01-31 17:01:49 -08:00
parent 63336ed58d
commit 1cf5e55e61
3 changed files with 14 additions and 3 deletions

View File

@ -90,7 +90,12 @@ internal static QualityTypes ParseQuality(string name)
}
if (name.Contains("bluray") || name.Contains("bdrip"))
return QualityTypes.Bluray;
{
if (name.Contains("1080p"))
return QualityTypes.Bluray1080p;
return QualityTypes.Bluray720p;
}
if (name.Contains("web-dl"))
return QualityTypes.WEBDL;
if (name.Contains("x264") || name.Contains("h264") || name.Contains("720p"))

View File

@ -4,6 +4,8 @@ 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; }
}
}

View File

@ -27,8 +27,12 @@ public enum QualityTypes
/// </summary>
WEBDL = 4,
/// <summary>
/// HD File (Blu-ray Source)
/// 720P HD File (Blu-ray Source)
/// </summary>
Bluray = 5
Bluray720p = 5,
/// <summary>
/// 1080P HD File (Blu-ray Source)
/// </summary>
Bluray1080p = 6
}
}