Skip to content

Commit 7edb892

Browse files
committedJan 16, 2024
Throw download as failed for invalid magnet links
(cherry picked from commit 091449d9bff9023ca27a85cc1048296f7d5ea37b) Closes #9625 Fixes #9125
1 parent 3b36921 commit 7edb892

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/NzbDrone.Core/Download/TorrentClientBase.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,7 @@ private string DownloadFromMagnetUrl(RemoteMovie remoteMovie, IIndexer indexer,
223223
}
224224
catch (FormatException ex)
225225
{
226-
_logger.Error(ex, "Failed to parse magnetlink for movie '{0}': '{1}'", remoteMovie.Release.Title, magnetUrl);
227-
228-
return null;
226+
throw new ReleaseDownloadException(remoteMovie.Release, "Failed to parse magnetlink for episode '{0}': '{1}'", ex, remoteMovie.Release.Title, magnetUrl);
229227
}
230228

231229
if (hash != null)

0 commit comments

Comments
 (0)
Please sign in to comment.