Fixed: Error splitting subtitle from book title

Fixes #1473
Fixes READARR-39N
Fixes READARR-3ES
Fixes READARR-6CM
This commit is contained in:
ta264
2022-01-24 20:58:00 +00:00
parent 967dae5132
commit ecf1e1a130
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -413,7 +413,7 @@ namespace NzbDrone.Core.Parser
return null;
}
private static string GetTitleFuzzy(string report, string name, out string remainder)
public static string GetTitleFuzzy(string report, string name, out string remainder)
{
remainder = report;
@@ -600,8 +600,8 @@ namespace NzbDrone.Core.Parser
if (parenthesis > -1)
{
var endParenthesis = book.IndexOf(')');
if (endParenthesis > -1 && !book.Substring(parenthesis + 1, endParenthesis - parenthesis).Contains(' '))
var endParenthesis = book.IndexOf(')', parenthesis);
if (endParenthesis == -1 || !book.Substring(parenthesis + 1, endParenthesis - parenthesis).Contains(' '))
{
parenthesis = -1;
}