JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 05.05.2020, 22:55
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default [Request] ContasTurbo.com

I made a sketch of a plugin for GeraGera in the past. It worked for me, I was even using through Eclipse, but wasn't good enough, so you guys helped me, made the plugin work flawless and then included in the official hosters support.

Now I'm using another Multihoster that doesn't have a JD Plugin yet: contasturbo.com

I was trying to create a plugin and test before send you guys the code, but it doesn't work. I can login and get my subscription time, but for some reason the downloads doesn't even start.

When I start a download, on Eclipse console I get the following response:

Code:
Looking for library 'Ole32'
Adding paths from jna.library.path: null
Trying Ole32.dll
Found library 'Ole32' at Ole32.dll
And then the download button turns grey out.

I'm attaching my WIP and as soon as you guys open a new ticket, I will send my login credentials too.

Thanks in advance.
Attached Files
File Type: txt ContasTurboCom.txt (8.2 KB, 3 views)
Reply With Quote
  #2  
Old 06.05.2020, 10:14
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Hi,
I'll create a ticket for you.
I will also ask the admins of that multihost for an API.

Your attempt to add a static list of supported hosts is really bad as you will always have to update that plugin whenever this service changes its list of supported hosts.

Ticket:


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 06.05.2020, 11:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

Any exceptions on the console/log?
The Ole32 looks fine, first checks in JNA path, then system path.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 06.05.2020, 12:42
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

No exceptions at all. Funny, isn't?
The program just stall after this line.
I tried to Re-download everything but I couldn't get to work.

I really tried to get the hosts list using regex but I suck at it, so after one entire night trying I just gave up and add them manually hahaha

Thanks for the ticket.

Do I send you the login credentials now or wait for the Multihoster respond you first?
Reply With Quote
  #5  
Old 06.05.2020, 12:46
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Quote:
Originally Posted by dxzdxz1 View Post
Do I send you the login credentials now or wait for the Multihoster respond you first?
Well if they really respond they may as well give us a premium account.

If you want we can do it this way:
Send me your logindata via PN right away.

I will check and possibly fix your version of the plugin so it works for you.

Then we'll wait 7-14 days and depending on whether they respond and make/have an API or not, I might need your account again to add the plugin - good idea?

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #6  
Old 06.05.2020, 13:08
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Sent you!

One more thing. Download links from brfiles generated through the site are requested in a different way. The final download link comes directly from brfiles server. I believe they are partners.

All the other links comes from the address that I put on the script
Reply With Quote
  #7  
Old 06.05.2020, 13:33
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Hi again,

I was unable to login - maybe they block german IPs or it were too many IPs trying to login - I only got this:
Code:
Erro CENSORED. Entre em contato com o suporte pelo email faleconosco@contasturbo.com
... so I was unable to fully test it but I did change a lot so if you're lucky it will work now - source:
pastebin.com/QdNy4qnW
I've also added it to our repo although it is still untested as said.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #8  
Old 06.05.2020, 14:21
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Quote:
Originally Posted by pspzockerscene View Post
... so I was unable to fully test it but I did change a lot so if you're lucky it will work now
I've also added it to our repo although it is still untested as said.

-psp-
I got an error

Code:
at jd.plugins.hoster.ContasturboCom.login(ContasturboCom.java:95
EDIT: Apparently, the login is successful, it loads the /gerador/ page, but for some reason the plugin doesn't detect that

Last edited by dxzdxz1; 06.05.2020 at 14:29. Reason: Reason
Reply With Quote
  #9  
Old 06.05.2020, 14:59
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

If I remove the line
Code:
if (!isLoggedIN()) {
throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_DISABLE);
}
I can get to login successfully, but the downloader stall again with with the log

Code:
THREAD: 27
27|Log.L.log 06/05/20 09:52:05 - FINEST [ org.appwork.loggingv3.LogV3(finest) ] -> jd.controlling.downloadcontroller.DownloadWatchDog@6b3f073e State changed IDLE--1(457420119) -> RUNNING--1(360992847)
Show

THREAD: 27
27|jd.controlling.downloadcontroller.DownloadWatchDog.log 06/05/20 09:52:05 - INFO [ jd.controlling.downloadcontroller.DownloadWatchDog$25(execute) ] -> DownloadWatchDog: start
Looking for library 'Ole32'
Adding paths from jna.library.path: null
Trying Ole32.dll
Found library 'Ole32' at Ole32.dll

THREAD: 60
60|WindowsAntiStandby.log 06/05/20 09:52:07 - FINE [ org.jdownloader.extensions.antistandby.WindowsAntiStandby(enableAntiStandby) ] -> JDAntiStandby: Start

THREAD: 35
35|Gui.log 06/05/20 09:52:17 - INFO [ jd.gui.swing.jdgui.JDGui$27(run) ] -> Handler null
About your error, I don't know. It could be that you are being GeoBlocked.
If you are willing to try, I can send you a login for a VPN subscription that I own.

Last edited by dxzdxz1; 06.05.2020 at 15:00. Reason: Reason
Reply With Quote
  #10  
Old 06.05.2020, 15:10
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Quote:
Originally Posted by dxzdxz1 View Post
If I remove the line
Code:
if (!isLoggedIN()) {
throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_DISABLE);
}
I can get to login successfully, but the downloader stall again with with the log
Bad idea!
This way you have no idea whether the login is successful or not - you just force it to continue.
... I just discovered that you indeed just copied this line from the "conexaomega.com" plugin which is indeed why it is probably not working:
Code:
                if (br.getCookie(COOKIE_HOST, "cm_auth") == null) {
                    return false;
                }
You may change the cookie-check for any cookie of contasturbo which only exists when you are- logged-IN --> Again I cannot check this as I'am unable to login into your account.

I don't think I will find more time for this today - maybe come back to me tomorrow then I may find time to try with your VPN ...

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #11  
Old 06.05.2020, 14:52
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

As said I'am unable to login via website so I was not even able to verify whether your login-chjeck via this cookie is working.

You will have to debug it on your own for now.

Any ideas why I'am unable to login with your account?
Please read my previous post again it contains the error I get when I try to login with your account.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #12  
Old 06.05.2020, 15:22
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Yes. Most part was copied from ConexaoMega hahahaha
I will change this line, I didn't even realize that

About the time, there's no problem at all. I'm just happy that you are being really helpful. I'm working right now too.

Thanks again
Reply With Quote
  #13  
Old 06.05.2020, 15:30
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Nice - good luck and seeya tomorrow!

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #14  
Old 06.05.2020, 15:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

@dxzdxz1: It would help to send pspzocker the console/log of the request, so he can see server responses and cookies and so on
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 06.05.2020, 17:11
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Quote:
Originally Posted by Jiaz View Post
@dxzdxz1: It would help to send pspzocker the console/log of the request, so he can see server responses and cookies and so on
Good idea

Here's the entire console log from the moment I include a download link until the moment I start the download

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

The download doesn't start, and the last line is that one from DownloadWatchDog
Reply With Quote
  #16  
Old 06.05.2020, 17:40
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Sorry, it will not work like this.
Also without fixing the login, that plugin will not work.

It might be easier if you:
1. Logout in browser.
2. Open the dev console (use Chrome).
3. Login and start a download via this multihoster.
4. Export the .HAR file and send it to me:
stackoverflow.com/questions/7521942/export-data-from-chrome-developer-tool

Either that or I need a way to be able to login here with my IP or a VPN ...

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #17  
Old 06.05.2020, 17:52
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Quote:
Originally Posted by pspzockerscene View Post
Sorry, it will not work like this.
Also without fixing the login, that plugin will not work.

It might be easier if you:
1. Logout in browser.
2. Open the dev console (use Chrome).
3. Login and start a download via this multihoster.
4. Export the .HAR file and send it to me:
stackoverflow.com/questions/7521942/export-data-from-chrome-developer-tool

Either that or I need a way to be able to login here with my IP or a VPN ...

-psp-

I tried to attach a zip file here, but I was getting a error 413

So I uploaded here: **External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #18  
Old 06.05.2020, 18:37
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Perfect!

Login is now definitely working though I was unable to start any download.
This is what the "gerador" site returned after I sent an uploaded.net URL there:
Code:
					<div class="error">
						
						<div class="label-alert">Ocorreu um erro ao gerar esse link. Código do erro: CENSORED<br/>Entre em contato conosco pelo email faleconosco@contasturbo.com</div>
						
					</div>
The update will be released within the next few seconds.
Source is available via our SVN now.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by Jiaz; 06.05.2020 at 19:04.
Reply With Quote
  #19  
Old 06.05.2020, 20:20
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Quote:
Originally Posted by pspzockerscene View Post
Perfect!

Login is now definitely working though I was unable to start any download.
This is what the "gerador" site returned after I sent an uploaded.net URL there:
Code:
Ocorreu um erro ao gerar esse link. Código do erro: CENSORED<br/>Entre em contato conosco pelo email faleconosco@contasturbo.com
The update will be released within the next few seconds.
Source is available via our SVN now.

-psp-
I can confirm it's working! Thanks
This Censored message is probably some king of GeoBlock.

I just notice one thing. There's only 1 chunk per download, but their limits are 16 chunks per download (or) 8 downloads at the same time, respecting 32 connections max (as you can see on the attachment

For now, I included the line

Code:
private static final boolean         ACCOUNT_PREMIUM_RESUME    = true;
private static final int             ACCOUNT_PREMIUM_MAXCHUNKS = 16;

At the beginning and at the jd.plugins.BrowserAdapter.openDownload

Thank you @pspzockerscene!

Now the only thing that's left (if you can help me, ofc) is to use regex to get the supported hosts list from the frontpage or from the /gerador/ page.
Attached Images
File Type: png maxdown.PNG (21.8 KB, 1 views)

Last edited by dxzdxz1; 06.05.2020 at 20:22. Reason: Correction
Reply With Quote
  #20  
Old 06.05.2020, 22:56
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Ok, I manage to get the supported hosts list using regex. It isn't pretty, but it works.

I can say that, right now, everything is working

This is my code:

Code:
pastebin.com/2XRg0L5q

Tomorrow, if you can, check the code to see if you can improve anything, but If you don't get the time to see, just publish this code above. I can assure you that is working already

One thing that I don't know how to control is the Chunk and Download limits, I just leave as -1 for now.

Thank you very much for all the support!
Reply With Quote
  #21  
Old 07.05.2020, 09:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

I've already added that RegEx for testing yesterday.

Added maxchunks = 2 and maxdownloads = 8 for now and enabled resume.

Please keep in mind that for the chunks, you will usually use negative values e.g.:
6 = force 6 chunks
-6 = allow up to 6 chunks
1 = (force) max. 1 chunk
0 = allow unlimited (= 20) chunks

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #22  
Old 07.05.2020, 20:19
dxzdxz1 dxzdxz1 is offline
Super Loader
 
Join Date: Nov 2017
Posts: 26
Default

Wonderful! Thank you again @pspzockerscene! Now I know even more about developing my own plugins in the future, even tho I don't know much about Java programming

I wish you all the best
Reply With Quote
  #23  
Old 07.05.2020, 21:32
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,109
Default

Thanks for your feedback.

Keep in mind that it is all much better when you have an API.
This one is pretty much "worst case" as it will break down as soon as they change their webpage

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
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 16:36.
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.