Fixed: Parse TVRip releases as SDTV
This commit is contained in:
parent
c591a86b02
commit
d7eae958b7
|
@ -56,6 +56,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||||
[TestCase("[HorribleSubs] Yowamushi Pedal - 32 [480p]", false)]
|
[TestCase("[HorribleSubs] Yowamushi Pedal - 32 [480p]", false)]
|
||||||
[TestCase("[CR] Sailor Moon - 004 [480p][48CE2D0F]", false)]
|
[TestCase("[CR] Sailor Moon - 004 [480p][48CE2D0F]", false)]
|
||||||
[TestCase("[Hatsuyuki] Naruto Shippuuden - 363 [848x480][ADE35E38]", false)]
|
[TestCase("[Hatsuyuki] Naruto Shippuuden - 363 [848x480][ADE35E38]", false)]
|
||||||
|
[TestCase("Muppet.Babies.S03.TVRip.XviD-NOGRP", false)]
|
||||||
public void should_parse_sdtv_quality(string title, bool proper)
|
public void should_parse_sdtv_quality(string title, bool proper)
|
||||||
{
|
{
|
||||||
ParseAndVerifyQuality(title, Quality.SDTV, proper);
|
ParseAndVerifyQuality(title, Quality.SDTV, proper);
|
||||||
|
|
|
@ -16,12 +16,13 @@ namespace NzbDrone.Core.Parser
|
||||||
(?<bluray>BluRay|Blu-Ray|HDDVD|BD)|
|
(?<bluray>BluRay|Blu-Ray|HDDVD|BD)|
|
||||||
(?<webdl>WEB[-_. ]DL|WEBDL|WebRip|iTunesHD|WebHD)|
|
(?<webdl>WEB[-_. ]DL|WEBDL|WebRip|iTunesHD|WebHD)|
|
||||||
(?<hdtv>HDTV)|
|
(?<hdtv>HDTV)|
|
||||||
(?<bdrip>BDRiP)|
|
(?<bdrip>BDRip)|
|
||||||
(?<brrip>BRRip)|
|
(?<brrip>BRRip)|
|
||||||
(?<dvd>DVD|DVDRip|NTSC|PAL|xvidvd)|
|
(?<dvd>DVD|DVDRip|NTSC|PAL|xvidvd)|
|
||||||
(?<dsr>WS[-_. ]DSR|DSR)|
|
(?<dsr>WS[-_. ]DSR|DSR)|
|
||||||
(?<pdtv>PDTV)|
|
(?<pdtv>PDTV)|
|
||||||
(?<sdtv>SDTV)
|
(?<sdtv>SDTV)|
|
||||||
|
(?<tvrip>TVRip)
|
||||||
)\b",
|
)\b",
|
||||||
RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
|
RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
|
||||||
|
|
||||||
|
@ -165,7 +166,8 @@ namespace NzbDrone.Core.Parser
|
||||||
|
|
||||||
if (sourceMatch.Groups["pdtv"].Success ||
|
if (sourceMatch.Groups["pdtv"].Success ||
|
||||||
sourceMatch.Groups["sdtv"].Success ||
|
sourceMatch.Groups["sdtv"].Success ||
|
||||||
sourceMatch.Groups["dsr"].Success)
|
sourceMatch.Groups["dsr"].Success ||
|
||||||
|
sourceMatch.Groups["tvrip"].Success)
|
||||||
{
|
{
|
||||||
if (HighDefPdtvRegex.IsMatch(normalizedName))
|
if (HighDefPdtvRegex.IsMatch(normalizedName))
|
||||||
{
|
{
|
||||||
|
@ -177,6 +179,7 @@ namespace NzbDrone.Core.Parser
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Anime Bluray matching
|
//Anime Bluray matching
|
||||||
if (AnimeBlurayRegex.Match(normalizedName).Success)
|
if (AnimeBlurayRegex.Match(normalizedName).Success)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue