mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
TVChaosUK: download relogin
This commit is contained in:
@@ -324,5 +324,17 @@ namespace Jackett.Common.Indexers
|
|||||||
|
|
||||||
return releases;
|
return releases;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override async Task<byte[]> Download(Uri link)
|
||||||
|
{
|
||||||
|
var response = await base.Download(link);
|
||||||
|
if (response.Length >= 1 && response[0] == '<') // issue #4395
|
||||||
|
{
|
||||||
|
// relogin
|
||||||
|
await ApplyConfiguration(null);
|
||||||
|
response = await base.Download(link);
|
||||||
|
}
|
||||||
|
return response;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user