Skip to content

Commit

Permalink
Fixed: (Nebulance) Prevent redirect to login page when downloading to…
Browse files Browse the repository at this point in the history
…rrent files
  • Loading branch information
mynameisbogdan committed Feb 18, 2023
1 parent 85f8e0c commit 035ad33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/NzbDrone.Core/Indexers/Definitions/Nebulance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;
using NLog;
using NzbDrone.Common.Extensions;
Expand Down Expand Up @@ -45,6 +46,14 @@ public override IParseIndexerResponse GetParser()
return new NebulanceParser(Settings);
}

public override async Task<byte[]> Download(Uri link)
{
// Invalidate cookies before downloading to prevent redirect to login page.
UpdateCookies(null, null);

return await base.Download(link);
}

private IndexerCapabilities SetCapabilities()
{
var caps = new IndexerCapabilities
Expand Down

0 comments on commit 035ad33

Please sign in to comment.