mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-02 16:42:01 +02:00
Demonoid: improve download debugging
This commit is contained in:
@@ -231,7 +231,9 @@ namespace Jackett.Common.Indexers
|
|||||||
public override async Task<byte[]> Download(Uri link)
|
public override async Task<byte[]> Download(Uri link)
|
||||||
{
|
{
|
||||||
var results = await RequestStringWithCookies(link.AbsoluteUri);
|
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;
|
CQ dom = results.Content;
|
||||||
var dl = dom.Find("a:has(font:contains(\"Download torrent file\"))");
|
var dl = dom.Find("a:has(font:contains(\"Download torrent file\"))");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user