mirror of
https://github.com/Radarr/Radarr
synced 2026-05-09 11:10:23 +02: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 @@ public static string ToUrlSlug(string value, bool invalidDashReplacement = false
|
|||
|
||||
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 @@ public async Task<object> DownloadRelease([FromBody] ReleaseResource release)
|
|||
}
|
||||
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…
Reference in a new issue