mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 09:18:34 +00:00
Treat SUBPACK's as extra releases, so they will not be downloaded.
This commit is contained in:
parent
7d4e097137
commit
0dbb3789eb
2 changed files with 12 additions and 2 deletions
|
@ -363,5 +363,15 @@ namespace NzbDrone.Core.Test
|
|||
|
||||
result.Should().BeNull();
|
||||
}
|
||||
|
||||
[TestCase("Lie.to.Me.S03.SUBPACK.DVDRip.XviD-REWARD")]
|
||||
[TestCase("The.Middle.S02.SUBPACK.DVDRip.XviD-REWARD")]
|
||||
[TestCase("CSI.S11.SUBPACK.DVDRip.XviD-REWARD")]
|
||||
public void parse_season_subpack(string postTitle)
|
||||
{
|
||||
var result = Parser.ParseTitle(postTitle);
|
||||
|
||||
result.Should().BeNull();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,7 +44,7 @@ namespace NzbDrone.Core
|
|||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||
|
||||
//Supports Season only releases
|
||||
new Regex(@"^(?<title>.+?)\W(?:S|Season)\W?(?<season>\d{1,2}(?!\d+))\W?(?<extras>EXTRAS)?(?!\\)",
|
||||
new Regex(@"^(?<title>.+?)\W(?:S|Season)\W?(?<season>\d{1,2}(?!\d+))\W?(?<extras>EXTRAS|SUBPACK)?(?!\\)",
|
||||
RegexOptions.IgnoreCase | RegexOptions.Compiled)
|
||||
};
|
||||
|
||||
|
@ -135,7 +135,7 @@ namespace NzbDrone.Core
|
|||
|
||||
else
|
||||
{
|
||||
//Check to see if this is an "Extras" pack, if it is, return NULL
|
||||
//Check to see if this is an "Extras" or "SUBPACK" release, if it is, return NULL
|
||||
//Todo: Set a "Extras" flag in EpisodeParseResult if we want to download them ever
|
||||
if (!String.IsNullOrEmpty(match[0].Groups["extras"].Value))
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue