1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Added another nzbgeek hashed pattern.

This commit is contained in:
Taloth Saldono 2015-03-15 13:11:17 +01:00
parent 61c263856b
commit 6e5e781245
2 changed files with 9 additions and 0 deletions

View File

@ -73,6 +73,13 @@ public class HashedReleaseFixture : CoreTest
"grimm", "grimm",
Quality.WEBDL720p, Quality.WEBDL720p,
"ECI" "ECI"
},
new object[]
{
@"C:\Test\The.Good.Wife.S02E23.720p.HDTV.x264-NZBgeek/cgajsofuejsa501.mkv".AsOsAgnostic(),
"thegoodwife",
Quality.HDTV720p,
"NZBgeek"
} }
}; };

View File

@ -141,7 +141,9 @@ public static class Parser
new Regex(@"^[a-z0-9]{24}$", RegexOptions.Compiled), new Regex(@"^[a-z0-9]{24}$", RegexOptions.Compiled),
// Format seen on some NZBGeek releases // Format seen on some NZBGeek releases
// Be very strict with these coz they are very close to the valid 101 ep numbering.
new Regex(@"^[A-Z]{11}\d{3}$", RegexOptions.Compiled), new Regex(@"^[A-Z]{11}\d{3}$", RegexOptions.Compiled),
new Regex(@"^[a-z]{12}\d{3}$", RegexOptions.Compiled),
//Backup filename (Unknown origins) //Backup filename (Unknown origins)
new Regex(@"^Backup_\d{5,}S\d{2}-\d{2}$", RegexOptions.Compiled), new Regex(@"^Backup_\d{5,}S\d{2}-\d{2}$", RegexOptions.Compiled),