View Single Post
  #37  
Old 25.03.2011, 22:16
p2pnoob
Guest
 
Posts: n/a
Default

Fixed. Followed from my suggestion above. Obviously this isn't the best way since I barely know the JD code, but at least if a solution is known someone can improve it. Forgive me if posting code here is not the correct procedure, I'm not sure what the protocol is.

Spoiler:

In jd.plugins.hoster.DailyMotionCom:

Add:
Code:
private String auth = null;

In requestFileInformation(), after:
Code:
br.setCookie("**External links are only visible to Support Staff**, "family_filter", "off");
Add:
Code:
if(auth != null)
    br.setCookie("**External links are only visible to Support Staff**, "dailymotion_auth", auth);

In login(), after:
Code:
if (br.getCookie(MAINPAGE, "sid") == null || br.getCookie(MAINPAGE, "dailymotion_auth") == null) throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_DISABLE);
Add:
Code:
auth = br.getCookie(MAINPAGE, "dailymotion_auth");
Reply With Quote