|
|
@ -593,15 +593,15 @@ namespace NzbDrone.Core.Parser
|
|
|
|
public static string RemoveFileExtension(string title)
|
|
|
|
public static string RemoveFileExtension(string title)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title = FileExtensionRegex.Replace(title, m =>
|
|
|
|
title = FileExtensionRegex.Replace(title, m =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var extension = m.Value.ToLower();
|
|
|
|
|
|
|
|
if (MediaFiles.MediaFileExtensions.Extensions.Contains(extension) || new[] { ".par2", ".nzb" }.Contains(extension))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var extension = m.Value.ToLower();
|
|
|
|
return string.Empty;
|
|
|
|
if (MediaFiles.MediaFileExtensions.Extensions.Contains(extension) || new[] { ".par2", ".nzb" }.Contains(extension))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
return string.Empty;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return m.Value;
|
|
|
|
return m.Value;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return title;
|
|
|
|
return title;
|
|
|
|
}
|
|
|
|
}
|
|
|
|