JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12.11.2020, 20:56
Crushed Crushed is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Default DBC Capcha issue



Login is Correct,
And i got +5K capchas on this account.


It would be a much easier time if you guys could implement Token usage.

**External links are only visible to Support Staff****External links are only visible to Support Staff**

Would even Love to help you with this, but i saw the downloader is written in java.

I could only serve with C#.

anyway, a solution or else would be wonderful
Reply With Quote
  #2  
Old 12.11.2020, 21:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Have you switched your account to use tokens?
Will check and work on this by tomorrow
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 12.11.2020, 21:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 12.11.2020, 22:23
Crushed Crushed is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Thumbs up

Nice!

Shouldnt be that bad, they even have Api "packs" for each language with documentation and examples
-- the java one **External links are only visible to Support Staff****External links are only visible to Support Staff** --

Thanks a bunch, Much appreciated.
Reply With Quote
  #5  
Old 13.11.2020, 01:49
Crushed Crushed is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Default

Just looked around a bit and it looks like the implementation of the DBC api is pretty old?

It would already help me out if it worked at all with this service.

For example, this looks some bit outdated? ( or more like, selfmade code to make use of their API )
Quote:
private DBCGetUserResponse getUserData() throws UnsupportedEncodingException, IOException {
String json = createBrowser().postPage("**External links are only visible to Support Staff**, new UrlQuery().addAndReplace("password", URLEncode.encodeRFC2396(config.getPassword())).addAndReplace("username", URLEncode.encodeRFC2396(config.getUserName())));
return JSonStorage.restoreFromString(json, DBCGetUserResponse.TYPE);
}
Where, you can use their Api client which defines the "Client" as an abstract public class already, that you just need to populate --
Quote:
// Put your DBC username & password here:
//Client client = (Client)(new HttpClient(args[0], args[1]));
String username = "your_username_here";
String password = "your_password_here";
String authtoken = "your_authtoken_here";
String filename = "test.jpg";
// Client client = (Client)(new SocketClient(username, password));
Client client = (Client)(new SocketClient(authtoken));
hmm, As i said, i mainly work with C# . but, you never get around java anyway haha
Reply With Quote
  #6  
Old 13.11.2020, 09:34
Crushed Crushed is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Default

Actually. Nevermind, forget what i said.
Now it just said that it could successfully connect.
Shows my account budget + left capchas aswell.
Mh! Seems like it was problem on their side.

Feel free to still implement the token, but its not urgent anymore .
Thanks anyway for the help
Reply With Quote
  #7  
Old 13.11.2020, 13:24
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

We don't use their api client because we have own http-client/json mapper..implemented the api on our own(simple http requests, a complete client is too much overhead). no additional dependencies that way.
I've added auth token support. Leave username empty and enter auth-token as password.
The shown error above seems to be account protection. Too often with authtoken(when disabled) results in same error for me
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 13.11.2020 at 13:35.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 11:03.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.