mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-24 06:27:08 -04:00
Fixed: Prevent exception when grabbing unparsable release
(cherry picked from commit 9a69222c9a1c42c2571f21e2d4a2e02b90216248) Closes #10789
This commit is contained in:
parent
da2ce10c68
commit
e03289abe7
2 changed files with 6 additions and 1 deletions
|
@ -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 _))
|
||||
{
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue