mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-24 16:51:58 +00:00
fixed deserilization screwing with quality.
This commit is contained in:
parent
0a3b0c9973
commit
59d2114c87
1 changed files with 55 additions and 13 deletions
|
@ -89,22 +89,64 @@ public override bool Equals(object obj)
|
|||
{
|
||||
if (ReferenceEquals(null, obj)) return false;
|
||||
if (ReferenceEquals(this, obj)) return true;
|
||||
if (obj.GetType() != typeof (Quality)) return false;
|
||||
return Equals((Quality) obj);
|
||||
if (obj.GetType() != typeof(Quality)) return false;
|
||||
return Equals((Quality)obj);
|
||||
}
|
||||
|
||||
public static readonly Quality Unknown = new Quality { Id = 0, Name = "Unknown", Weight = 0 };
|
||||
public static readonly Quality SDTV = new Quality {Id = 1, Name = "SDTV", Weight = 1};
|
||||
public static readonly Quality WEBDL480p = new Quality { Id = 8, Name = "WEBDL-480p", Weight = 2 };
|
||||
public static readonly Quality DVD = new Quality { Id = 2, Name = "DVD", Weight = 3 };
|
||||
public static readonly Quality HDTV720p = new Quality { Id = 4, Name = "HDTV-720p", Weight = 4 };
|
||||
public static readonly Quality HDTV1080p = new Quality { Id = 9, Name = "HDTV-1080p", Weight = 5 };
|
||||
public static readonly Quality RAWHD = new Quality { Id = 10, Name = "Raw-HD", Weight = 6 };
|
||||
public static readonly Quality WEBDL720p = new Quality { Id = 5, Name = "WEBDL-720p", Weight = 7 };
|
||||
public static readonly Quality Bluray720p = new Quality { Id = 6, Name = "Bluray720p", Weight = 8 };
|
||||
public static readonly Quality WEBDL1080p = new Quality { Id = 3, Name = "WEBDL-1080p", Weight = 9 };
|
||||
public static readonly Quality Bluray1080p = new Quality { Id = 7, Name = "Bluray1080p", Weight = 10 };
|
||||
public static Quality Unknown
|
||||
{
|
||||
get { return new Quality { Id = 0, Name = "Unknown", Weight = 0 }; }
|
||||
}
|
||||
|
||||
public static Quality SDTV
|
||||
{
|
||||
get { return new Quality { Id = 1, Name = "SDTV", Weight = 1 }; }
|
||||
}
|
||||
|
||||
public static Quality WEBDL480p
|
||||
{
|
||||
get { return new Quality { Id = 8, Name = "WEBDL-480p", Weight = 2 }; }
|
||||
}
|
||||
|
||||
public static Quality DVD
|
||||
{
|
||||
get { return new Quality { Id = 2, Name = "DVD", Weight = 3 }; }
|
||||
}
|
||||
|
||||
public static Quality HDTV720p
|
||||
{
|
||||
get { return new Quality { Id = 4, Name = "HDTV-720p", Weight = 4 }; }
|
||||
}
|
||||
|
||||
public static Quality HDTV1080p
|
||||
{
|
||||
get { return new Quality { Id = 9, Name = "HDTV-1080p", Weight = 5 }; }
|
||||
}
|
||||
|
||||
public static Quality RAWHD
|
||||
{
|
||||
get { return new Quality { Id = 10, Name = "Raw-HD", Weight = 6 }; }
|
||||
}
|
||||
|
||||
public static Quality WEBDL720p
|
||||
{
|
||||
get { return new Quality { Id = 5, Name = "WEBDL-720p", Weight = 7 }; }
|
||||
}
|
||||
|
||||
public static Quality Bluray720p
|
||||
{
|
||||
get { return new Quality { Id = 6, Name = "Bluray720p", Weight = 8 }; }
|
||||
}
|
||||
|
||||
public static Quality WEBDL1080p
|
||||
{
|
||||
get { return new Quality { Id = 3, Name = "WEBDL-1080p", Weight = 9 }; }
|
||||
}
|
||||
|
||||
public static Quality Bluray1080p
|
||||
{
|
||||
get { return new Quality { Id = 7, Name = "Bluray1080p", Weight = 10 }; }
|
||||
}
|
||||
|
||||
public static List<Quality> All()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue