|
|
@ -212,11 +212,15 @@ namespace NzbDrone.Core.Qualities
|
|
|
|
return quality.Id;
|
|
|
|
return quality.Id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: Go back to fully parsing the quality from the start!
|
|
|
|
public static Quality FindByInfo(Source source, Resolution resolution, Modifier modifier)
|
|
|
|
public static Quality FindByInfo(Source source, Resolution resolution, Modifier modifier)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return All.SingleOrDefault(q =>
|
|
|
|
return All.SingleOrDefault(q =>
|
|
|
|
q.Source == source && ((q.Resolution == resolution) ||
|
|
|
|
q.Source == source && ((q.Resolution == resolution) ||
|
|
|
|
(q.Resolution == Resolution.Unknown)) && (q.Modifier == modifier));
|
|
|
|
(q.Resolution == Resolution.Unknown)) && (q.Modifier == modifier)) ??
|
|
|
|
|
|
|
|
All.FirstOrDefault(q => q.Source == source && ((q.Resolution == resolution) ||
|
|
|
|
|
|
|
|
(q.Resolution == Resolution.Unknown))) ??
|
|
|
|
|
|
|
|
Unknown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|