mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-17 02:10:48 +02:00
Check if release still exists in cache when grabbing release
This commit is contained in:
parent
f7d7cca982
commit
f5b57db753
1 changed files with 7 additions and 0 deletions
|
|
@ -57,6 +57,13 @@ public ActionResult<ReleaseResource> GrabRelease(ReleaseResource release)
|
|||
|
||||
var releaseInfo = _remoteReleaseCache.Find(GetCacheKey(release));
|
||||
|
||||
if (releaseInfo == null)
|
||||
{
|
||||
_logger.Debug("Couldn't find requested release in cache, cache timeout probably expired.");
|
||||
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Couldn't find requested release in cache, try searching again");
|
||||
}
|
||||
|
||||
var indexerDef = _indexerFactory.Get(release.IndexerId);
|
||||
var source = Request.GetSource();
|
||||
var host = Request.GetHostName();
|
||||
|
|
|
|||
Loading…
Reference in a new issue