Fixed: Prevent exception when grabbing unparsable release

(cherry picked from commit 9a69222c9a1c42c2571f21e2d4a2e02b90216248)

Closes #10789
This commit is contained in:
Mark McDowall 2024-12-17 17:05:39 -08:00 committed by Bogdan
parent da2ce10c68
commit e03289abe7
2 changed files with 6 additions and 1 deletions

View file

@ -465,6 +465,11 @@ namespace NzbDrone.Core.Parser
public static string CleanMovieTitle(this string title)
{
if (title.IsNullOrWhiteSpace())
{
return title;
}
// If Title only contains numbers return it as is.
if (long.TryParse(title, out _))
{

View file

@ -109,7 +109,7 @@ namespace Radarr.Api.V3.Indexers
}
else
{
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to find matching movie");
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to find matching movie, will need to be manually provided");
}
}