diff --git a/src/Jackett.Common/Indexers/TVChaosUK.cs b/src/Jackett.Common/Indexers/TVChaosUK.cs index 0a6769c39..fe5ce0eb3 100644 --- a/src/Jackett.Common/Indexers/TVChaosUK.cs +++ b/src/Jackett.Common/Indexers/TVChaosUK.cs @@ -215,7 +215,7 @@ namespace Jackett.Common.Indexers var infoMatch = Regex.Match(description, @"Category:\W(?.*)\W\/\WSeeders:\W(?[\d,]*)\W\/\WLeechers:\W(?[\d,]*)\W\/\WSize:\W(?[\d\.]*\W\S*)\W\/\WSnatched:\W(?[\d,]*) x times"); if (!infoMatch.Success) throw new Exception(string.Format("Unable to find info in {0}: ", description)); - + var release = new ReleaseInfo() { Title = title, @@ -324,5 +324,17 @@ namespace Jackett.Common.Indexers return releases; } + + public override async Task 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; + } } }