protected override Task ConfigureCookieClient(ISiteHttpClient client, ILogin login) { var baseLogin = (BaseLogin)login; if (!string.IsNullOrWhiteSpace(baseLogin.UserId) && !client.GetCookies().Any(c => c.Name == "dle_user_id")) { client.AddCookie("dle_user_id", baseLogin.UserId); client.AddCookie("dle_password", baseLogin.PasswordHash); } return(base.ConfigureCookieClient(client, login)); }
protected override Task ConfigureCookieClient(ISiteHttpClient client, ILogin login) { client.AddCookie("ageRestrict", "40"); return(base.ConfigureCookieClient(client, login)); }
protected override Task ConfigureCookieClient(ISiteHttpClient client, ILogin login) { client.AddCookie(GroupleParser.CookieKey, "true"); return(base.ConfigureCookieClient(client, login)); }