Fixed: (Nebulance) Prevent redirect to login page when downloading torrent files

pull/1439/head
Bogdan 1 year ago
parent 85f8e0c451
commit 035ad33b72

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;
using NLog;
using NzbDrone.Common.Extensions;
@ -45,6 +46,14 @@ namespace NzbDrone.Core.Indexers.Definitions
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

Loading…
Cancel
Save