JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 24.02.2025, 07:24
denny denny is offline
Baby Loader
 
Join Date: Oct 2018
Posts: 5
Post Multihoster download:Unskip missing account, refresh premiums and start the downloads

Sorry if it was already posted. I looked through the 78-page thread and couldn't find anything similar...the stuff i've tried to stitch together from existing scripts also didn't work as intended.

My issue is that i'm using a multihoster which randomly flags their supported domains as not working and those links get stopped with the error "Skipped - Account is missing". They start working again after a random time has passed, but i don't know when exactly until i manually resume/reset those links and (sometimes) disable/re-enable the multihoster.

I'm looking for a script that will, in a set xy minute interval:
- unskip the "account missing" links
- refresh the premium accounts or disable and re-enable just that specific MOCH
- start the downloads again (even if no other downloads are currently running)

It should do it only while there are any "account missing" links in the downloads list...i'm running JD2 24/7 and don't wanna get banned from that MOCH for excessive API queries or similar.


Thank you in advance.
Reply With Quote
  #2  
Old 24.02.2025, 10:48
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 74,768
Default

If the multihoster plugin is properly optimized, an "Account skipped" error should not happen anymore.
Therefore we need more information:
- Which multihoster are you using?
- Whats is the source host of the links you are downlloading?
- Logs please.

Quote:
Originally Posted by denny View Post
It should do it only while there are any "account missing" links in the downloads list...i'm running JD2 24/7 and don't wanna get banned from that MOCH for excessive API queries or similar.
.
Keep in mind that doing a lot of account refreshes could also get you banned from a multihoster API.
It is better to optimize the plugin than to write a script.

Please post your log-ID here
If your report is about a specific website which JD supports via plugin, please also provide example URLs which can be used to reproduce the issue you are having.
If your report is related to a login specific problem with a plugin supported website, enable debug mode before creating logs, see previously linked instructions.

Bitte poste deine Log-ID hier.
Falls dein Problem ein Problem mit einer Webseite ist, die per Plugin unterstützt wird, stelle bitte zusätzlich Testlinks zur Verfügung, mit denen sich dein Problem nachstellen lässt.
Geht es um einen nicht funktionierenden Account-Login, aktiviere vor dem Erstellen deines Logs den debug Modus (siehe zuvor verlinkte Anleitung).

-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 24.02.2025, 11:16
denny denny is offline
Baby Loader
 
Join Date: Oct 2018
Posts: 5
Default

Quote:
Originally Posted by pspzockerscene View Post
If the multihoster plugin is properly optimized, an "Account skipped" error should not happen anymore.
Therefore we need more information:
- Which multihoster are you using?
- Whats is the source host of the links you are downlloading?
- Logs please.
The multihoster i'm using is deepbrid.com
It happens with all their hosters i've tried until now (ddownload, katfile, 1fichier, filer), but the most issues are with 1fichier.com and filer.net since they have unlimited traffic. The missing account error appears as soon as they mark the host as down on deepbrid.com/backend-dl/index.php?page=api&action=hosters and it usually takes takes from 10 minutes to some hours until it's marked as up again.

I planned to set the script to 5 or 10 minute intervals by the way, no idea if that would be too much for them.

Logs:
24.02.25 11.01.12 <--> 23.02.25 18.47.20 jdlog://7929411370661/

Example download:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #4  
Old 24.02.2025, 12:00
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 74,768
Default

Quote:
Originally Posted by denny View Post
The missing account error appears as soon as they mark the host as down on deepbrid.com[...]
Hm in this case, the error you get is to be expected.
Your log also looks fine (things work as expected).

Their API does not specify how long the hosts are down so internally, they are treated as if deepbrid.com does not support them at all.
If the deepbrid.com API was to supply a "down time" or something similar, I could add auto retry for such cases.

Quote:
Originally Posted by denny View Post
it usually takes takes from 10 minutes to some hours until it's marked as up again.
Cannot confirm.
During the tests I did in the last 30 minutes, none of the "down" items have changed.
JDownloader automatically checks accounts every 30 minutes by default which will also refresh the list of supported hosts.

Options you have:
- Use a script
- or: contact deepbrid.com support and tell them about the possible solutions listed down below

Options the deepbrid.com staff has:
- Provide an expected down-time (timestamp aka "down until") via API instead of just "down"
- or: do not use the "down" status at all: just pretend like all of the hosts are up and then let the down ones fail with error codes 3, 9 or 10 and a meaningful error message
__________________
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 pspzockerscene; 24.02.2025 at 12:35. Reason: Fixed typo
Reply With Quote
  #5  
Old 25.02.2025, 10:45
denny denny is offline
Baby Loader
 
Join Date: Oct 2018
Posts: 5
Post

Thanks for checking. Contacting their support is basically mission impossible because they keep ignoring tickets (i had issues in the past)...the downside of paying less for 50+ hosts per year than just one of them costs per month.

I'll just wait in case if someone is willing to share a script that does what i asked for in the first post...
Reply With Quote
  #6  
Old 25.02.2025, 11:44
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 74,768
Default

Quote:
Originally Posted by denny View Post
Thanks for checking. Contacting their support is basically mission impossible because they keep ignoring tickets
Cannot confirm.

I've contacted them yesterday via ticket and they replied within a few hours:
deepbrid.com/helpdesk?_user_a=ticket&_user_b=%2Fhelpdesk

Though so far it doesn't seem like they are interested in implementing the API suggestions I mentioned here.
I also sent them a link to this public thread.
__________________
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
  #7  
Old 26.02.2025, 11:58
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 74,768
Default

Deepbrid has answered my request and allowed me to quote their reply on this topic:

Quote:
Yes, most of the time that a host is down is because the bandwidth of an specific host has reached the limit and our staff has to replace the accounts in order to make it work again, but we cannot predict dor how long time a host will be down, it could be 10 minutes, 1 hour or few hours… our system performs automatic checks from time to time to see if the hoster is working again and then mark it as Working.

Best Regards,
__________________
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 28.02.2025, 14:00
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,692
Default

Code:
/*
    refresh accounts
    trigger : interval
*/

var down = [];
var up = [];
var list = null;
var ids = [];

getAllDownloadLinks().forEach(function(link) {
    link.skippedReason == "NO_ACCOUNT" && down.indexOf(link.host) == -1 && down.push(link.host)
})

if (down.length) {
    try {
        list = getPage("https" + "://www.deepbrid.com/backend-dl/index.php?page=api&action=hosters");

        down.forEach(function(item) {
            if (list.indexOf(item) == -1) {
                up.push(item);
            }
        })
    } catch (e) {};
}

if (up.length) {
    callAPI("accountsV2", "listAccounts", {}).forEach(function(item) {
        if (up.indexOf(item.hostname) > -1) {
            ids.push(item.uuid);
        }
    })
}

ids.forEach(function(id) {
    callAPI("accountsV2", "disableAccounts", [id]);
    callAPI("accountsV2", "enableAccounts", [id]);
})
Reply With Quote
  #9  
Old 28.02.2025, 16:24
denny denny is offline
Baby Loader
 
Join Date: Oct 2018
Posts: 5
Default

Thank you! I currently don't have any large download job to trigger the error, but i believe the script will work as intended when it happens.
Reply With Quote
  #10  
Old 28.02.2025, 16:42
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 74,768
Default

Fyi
The deepbrid API now exposes the information since when a host is "down".
Next update will display that in our GUI too.
Screenshot:
Spoiler:




This is only a visual thing - it will not change any controlling behavior.

Bitte auf das nächste CORE-Update warten!

Please wait for the next CORE-Update!

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
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 20:57.
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 - 2025, Jelsoft Enterprises Ltd.