TVChaosUK: download relogin

This commit is contained in:
kaso17
2019-01-09 20:40:50 +01:00
parent 9e7d1cc547
commit ce15cb8bfe

View File

@@ -324,5 +324,17 @@ namespace Jackett.Common.Indexers
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;
}
}
}