Demonoid: improve download debugging

This commit is contained in:
kaso17 2018-06-05 13:34:54 +02:00
parent dae37f273a
commit 6d8239caab
1 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,9 @@ namespace Jackett.Common.Indexers
public override async Task<byte[]> Download(Uri link)
{
var results = await RequestStringWithCookies(link.AbsoluteUri);
await FollowIfRedirect(results);
//await FollowIfRedirect(results); // manual follow for better debugging (string)
if (results.IsRedirect)
results = await RequestStringWithCookies(results.RedirectingTo);
CQ dom = results.Content;
var dl = dom.Find("a:has(font:contains(\"Download torrent file\"))");