mirror of
https://github.com/mirror/jdownloader.git
synced 2024-11-23 20:19:50 +00:00
-Fixed hellshare premium login fixes #2634
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@12936 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
parent
275c52ec6f
commit
72759c9e89
@ -58,14 +58,9 @@ public class HellShareCom extends PluginForHost {
|
||||
/* to prefer english page */
|
||||
br.getHeaders().put("Accept-Language", "en-gb;q=0.9, en;q=0.8");
|
||||
br.setFollowRedirects(false);
|
||||
br.getPage("http://www.en.hellshare.com/log-in");
|
||||
Form form = br.getForm(0);
|
||||
if (form == null) throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
|
||||
form.put("lgnp7_lg", Encoding.urlEncode(account.getUser()));
|
||||
form.put("lgnp7_psw", Encoding.urlEncode(account.getPass()));
|
||||
br.setDebug(true);
|
||||
br.setFollowRedirects(true);
|
||||
br.submitForm(form);
|
||||
br.postPage("http://www.hellshare.com/login?do=loginForm-submit", "username=" + Encoding.urlEncode(account.getUser()) + "&password=" + Encoding.urlEncode(account.getPass()) + "&login=odeslat&DownloadRedirect=");
|
||||
/*
|
||||
* this will change account language to eng,needed because language is
|
||||
* saved in profile
|
||||
|
Loading…
Reference in New Issue
Block a user