|
|
|
@ -90,7 +90,7 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
private static readonly Regex FileExtensionRegex = new Regex(@"\.[a-z0-9]{2,4}$",
|
|
|
|
|
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
|
|
|
|
|
|
|
|
|
private static readonly Regex ReportImdbId = new Regex(@"(?<imdbid>tt\d{7})", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
|
|
|
|
private static readonly Regex ReportImdbId = new Regex(@"(?<imdbid>tt\d{7,8})", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
|
|
|
|
|
|
|
|
|
private static readonly RegexReplace SimpleTitleRegex = new RegexReplace(@"\s*(?:480[ip]|576[ip]|720[ip]|1080[ip]|2160[ip]|[xh][\W_]?26[45]|DD\W?5\W1|[<>?*:|]|848x480|1280x720|1920x1080|(8|10)b(it)?)",
|
|
|
|
|
string.Empty,
|
|
|
|
@ -309,7 +309,7 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
{
|
|
|
|
|
if (match.Groups["imdbid"].Value != null)
|
|
|
|
|
{
|
|
|
|
|
if (match.Groups["imdbid"].Length == 9)
|
|
|
|
|
if (match.Groups["imdbid"].Length == 9 || match.Groups["imdbid"].Length == 10)
|
|
|
|
|
{
|
|
|
|
|
return match.Groups["imdbid"].Value;
|
|
|
|
|
}
|
|
|
|
|