#1
|
|||
|
|||
[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 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. |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
Any exceptions on the console/log?
The Ole32 looks fine, first checks in JNA path, then system path.
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
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? |
#5
|
||||
|
||||
Quote:
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 |
#6
|
|||
|
|||
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 |
#7
|
||||
|
||||
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 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 |
#8
|
|||
|
|||
Quote:
Code:
at jd.plugins.hoster.ContasturboCom.login(ContasturboCom.java:95 Last edited by dxzdxz1; 06.05.2020 at 14:29. Reason: Reason |
#9
|
||||
|
||||
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 |
#10
|
|||
|
|||
If I remove the line
Code:
if (!isLoggedIN()) { throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_DISABLE); } 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 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 |
#11
|
||||
|
||||
Quote:
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; } 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 |
#12
|
|||
|
|||
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 |
#13
|
||||
|
||||
Nice - good luck and seeya tomorrow!
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#14
|
||||
|
||||
@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 |
#15
|
|||
|
|||
Quote:
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 |
#16
|
||||
|
||||
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 |
#17
|
|||
|
|||
Quote:
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** |
#18
|
||||
|
||||
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> Source is available via our SVN now. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by Jiaz; 06.05.2020 at 19:04. |
#19
|
|||
|
|||
Quote:
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. Last edited by dxzdxz1; 06.05.2020 at 20:22. Reason: Correction |
#20
|
|||
|
|||
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! |
#21
|
||||
|
||||
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 |
#22
|
|||
|
|||
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 |
#23
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|