Fixed: Importing "Backup_tvdbid" encrypted filenames

pull/2/head
Mark McDowall 10 years ago
parent 1e8c2a6a12
commit 867746a763

@ -44,6 +44,13 @@ namespace NzbDrone.Core.Test.ParserTests
"weeds",
"DVD",
"NZBgeek"
},
new object[]
{
@"C:\Test\Deadwood.S02E12.1080p.BluRay.x264-SONARR\Backup_72023S02-12".AsOsAgnostic(),
"deadwood",
"Bluray-1080p",
"SONARR"
}
};

@ -93,6 +93,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("NCIS.S010E16.720p.HDTV.X264-DIMENSION", "NCIS", 10, 16)]
[TestCase("[ www.Torrenting.com ] - Revolution.2012.S02E17.720p.HDTV.X264-DIMENSION", "Revolution2012", 2, 17)]
[TestCase("Revolution.2012.S02E18.720p.HDTV.X264-DIMENSION.mkv", "Revolution2012", 2, 18)]
[TestCase("Backup_72023S02-12.mkv", "Backup_72023", 2, 12)]
//[TestCase("", "", 0, 0)]
public void should_parse_single_episode(string postTitle, string title, int seasonNumber, int episodeNumber)
{

@ -129,7 +129,10 @@ namespace NzbDrone.Core.Parser
new Regex(@"^[a-z0-9]{24}$", RegexOptions.Compiled),
// Format seen on some NZBGeek releases
new Regex(@"^[A-Z]{11}\d{3}$", RegexOptions.Compiled)
new Regex(@"^[A-Z]{11}\d{3}$", RegexOptions.Compiled),
//Backup filename (Unknown origins)
new Regex(@"^Backup_\d{5,}S\d{2}-\d{2}$", RegexOptions.Compiled)
};
//Regex to detect whether the title was reversed.

Loading…
Cancel
Save