mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-24 22:35:49 -04:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -128,7 +128,6 @@ namespace NzbDrone.Core.Parser
|
||||
{
|
||||
if (sourceMatch.Groups["bluray"].Success)
|
||||
{
|
||||
|
||||
if (brDiskMatch)
|
||||
{
|
||||
result.Quality = Quality.BRDISK;
|
||||
@@ -352,7 +351,6 @@ namespace NzbDrone.Core.Parser
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Anime Bluray matching
|
||||
if (AnimeBlurayRegex.Match(normalizedName).Success)
|
||||
{
|
||||
@@ -474,12 +472,35 @@ namespace NzbDrone.Core.Parser
|
||||
{
|
||||
var match = ResolutionRegex.Match(name);
|
||||
|
||||
if (!match.Success) return Resolution.Unknown;
|
||||
if (match.Groups["R480p"].Success) return Resolution.R480p;
|
||||
if (match.Groups["R576p"].Success) return Resolution.R576p;
|
||||
if (match.Groups["R720p"].Success) return Resolution.R720p;
|
||||
if (match.Groups["R1080p"].Success) return Resolution.R1080p;
|
||||
if (match.Groups["R2160p"].Success) return Resolution.R2160p;
|
||||
if (!match.Success)
|
||||
{
|
||||
return Resolution.Unknown;
|
||||
}
|
||||
|
||||
if (match.Groups["R480p"].Success)
|
||||
{
|
||||
return Resolution.R480p;
|
||||
}
|
||||
|
||||
if (match.Groups["R576p"].Success)
|
||||
{
|
||||
return Resolution.R576p;
|
||||
}
|
||||
|
||||
if (match.Groups["R720p"].Success)
|
||||
{
|
||||
return Resolution.R720p;
|
||||
}
|
||||
|
||||
if (match.Groups["R1080p"].Success)
|
||||
{
|
||||
return Resolution.R1080p;
|
||||
}
|
||||
|
||||
if (match.Groups["R2160p"].Success)
|
||||
{
|
||||
return Resolution.R2160p;
|
||||
}
|
||||
|
||||
return Resolution.Unknown;
|
||||
}
|
||||
@@ -488,9 +509,20 @@ namespace NzbDrone.Core.Parser
|
||||
{
|
||||
var match = OtherSourceRegex.Match(name);
|
||||
|
||||
if (!match.Success) return Quality.Unknown;
|
||||
if (match.Groups["sdtv"].Success) return Quality.SDTV;
|
||||
if (match.Groups["hdtv"].Success) return Quality.HDTV720p;
|
||||
if (!match.Success)
|
||||
{
|
||||
return Quality.Unknown;
|
||||
}
|
||||
|
||||
if (match.Groups["sdtv"].Success)
|
||||
{
|
||||
return Quality.SDTV;
|
||||
}
|
||||
|
||||
if (match.Groups["hdtv"].Success)
|
||||
{
|
||||
return Quality.HDTV720p;
|
||||
}
|
||||
|
||||
return Quality.Unknown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user