JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #2481  
Old 09.11.2022, 23:08
PaleWoodChip PaleWoodChip is offline
Modem User
 
Join Date: Nov 2022
Posts: 2
Question Script Request

Hello, I'm new here.

I'd like to ask for a script. In my mind it would do the following:

- Check an array of links from the same site (eg. multiple threads from an image board)
- Grab every relevant file along with when they were posted down to the second
- Sort by when they were posted to split the packages as needed.

The reason why I want it that way, is because with my current script (only 9 lines at time of writing), it checks every 30 minutes, in a hardcoded order and I have to manually check every file, since all of the links were added at the same time.

I also want it to work with links affected by my packagizer rule (it just changes filenames if the package has a matching number and sourceurl).

Thank you in advance!
Reply With Quote
  #2482  
Old 10.11.2022, 13:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

I'm not sure if an EventScripter script is the right choice for that.
If I were you I'd choose any of these other options:
__________________
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
  #2483  
Old 10.11.2022, 14:10
PaleWoodChip PaleWoodChip is offline
Modem User
 
Join Date: Nov 2022
Posts: 2
Question

Quote:
Originally Posted by pspzockerscene View Post
I'm not sure if an EventScripter script is the right choice for that.
Is part of the reason because an EventScripter is incapable of splitting packages, collecting the metadata, or it'd be too slow/resource heavy?

Mostly asking to understand its limitations.

EDIT: Forgot to mention, the only site I use my script for is 4chan.

Last edited by PaleWoodChip; 10.11.2022 at 14:14. Reason: Clarification
Reply With Quote
  #2484  
Old 10.11.2022, 14:18
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Quote:
Originally Posted by PaleWoodChip View Post
Is part of the reason because an EventScripter is incapable of splitting packages, collecting the metadata, or it'd be too slow/resource heavy?
None of that.
I'd just prefer to do such crawling tasts from "outside JD" or via plugin and not via such a script.
It's only a personal preference.
__________________
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
  #2485  
Old 16.11.2022, 18:00
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

@MKey
Bugfix for your report in your post #2439 have just been released.

CORE-Updates have been released!
All announced bugfixes and features are live!
Please update your JDownloader and report any issues you find asap.
If this thread gets marked as "[Solved]" by our forum staff you can still post in it and we will read- and reply to it!

CORE-Updates wurden released!
Alle angekündigten Bugfixes/Features sind nun verfügbar!
Bitte JDownloader updaten und eventuelle Bugs schnellstmöglich an uns melden.
Falls dieser Thread vom Team als "[Erledigt]" markiert wird, kannst du weiterhin darin antworten und wir lesen/beantworten auch solche Threads!

-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
  #2486  
Old 22.11.2022, 15:07
bugs.bunny bugs.bunny is offline
Super Loader
 
Join Date: May 2020
Posts: 25
Default

Hi everyone,

may I ask a question where to find Event Scripter related logfiles?

I'm running a headless JDownloader (but this shouldn't be the deciding factor) and have two "Events" set up:

1. Automatically update JD when it is in idle (script from Knowledge Base, just copy and pasted)
2. auto-unskip (from mgpai's repository: **External links are only visible to Support Staff****External links are only visible to Support Staff**, as stated here at post 523: https://board.jdownloader.org/showpo...&postcount=523)

The 1st one auto-update works like a charm, but the 2nd one auto-unskip maybe doesn't always.

Now I wanted to check the logfiles if I can find something useful. But after a quick overfly about the files in logs/, I couldn't find anything related to the auto-unskip event... Can someone please help me finding the right direction?

Thanks a lot and best regards,
bugs.bunny
Reply With Quote
  #2487  
Old 25.11.2022, 19:00
areaprogrammer areaprogrammer is offline
Modem User
 
Join Date: Nov 2022
Posts: 2
Default

Hi there, I'd like to request support for a new premium site -- and would be willing to contribute $$$ to the project in order for it to be supported. Is there a particular place for people like me to make these requests?

I'm new to the forums, sorry if this is the wrong place :(
Reply With Quote
  #2488  
Old 25.11.2022, 21:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@areaprogrammer: wrong thread but that's okay just please open a new thread and name the site and provide some example links. Please use board search to check if there might already be another thread with same topic. In case you wish account support and can lend logins, please send them to support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2489  
Old 25.11.2022, 22:56
Johsnon Johsnon is offline
Wind Gust
 
Join Date: Jan 2013
Posts: 41
Default

Hi,

I'm looking for way to check in Event Scripter, whether the "JD Shutdown" extenstion is currently activated.
I want to point out, that I'm not looking for "enabled" or "installed".
(I was not able to find related documentation)

Thank you

edit:
No wait - I think I found something here https://board.jdownloader.org/showpo...5&postcount=21

Last edited by Johsnon; 25.11.2022 at 23:14.
Reply With Quote
  #2490  
Old 26.11.2022, 01:19
Coldblackice Coldblackice is offline
Wind Gust
 
Join Date: Sep 2019
Location: San Francisco
Posts: 40
Default

Is there a way for JD to script a scheduled re-downloading of a particular file (at an unchanging URL)?

There's a repo file I need to re-download periodically to check if it's been updated. It'd be great if JD2 could automatically download this file on a schedule, like download it every 48-hours, on JD's own.

Not sure if that's possible, though.
Reply With Quote
  #2491  
Old 26.11.2022, 16:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@Johsnon:Still need help?

@Coldblackice:this can be done with a script for eventscripter. you just want to download again and again the same link in list, so download, reset, wait, download, right? Please look through this thread and in case you need help/a hint, please ask/contact mgpai, our script master
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2492  
Old 26.11.2022, 19:12
Johsnon Johsnon is offline
Wind Gust
 
Join Date: Jan 2013
Posts: 41
Default

nope, I'm fine, thx
Reply With Quote
  #2493  
Old 27.11.2022, 07:17
Coldblackice Coldblackice is offline
Wind Gust
 
Join Date: Sep 2019
Location: San Francisco
Posts: 40
Default

Quote:
Originally Posted by Jiaz View Post
@Johsnon:Still need help?

@Coldblackice:this can be done with a script for eventscripter. you just want to download again and again the same link in list, so download, reset, wait, download, right? Please look through this thread and in case you need help/a hint, please ask/contact mgpai, our script master
Yes, that's right. I don't suppose JD can calculate/compare file hashes, could it? Even cooler would be if JD could compare the hash of a downloaded file with the already-existing file, check if they match, and if they do match, discard/recycle the redundant copy.

But I'm guessing hashing is beyond the ability scope of JD (which isn't a big ordeal).
Reply With Quote
  #2494  
Old 30.11.2022, 18:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by Coldblackice View Post
Yes, that's right. I don't suppose JD can calculate/compare file hashes, could it? Even cooler would be if JD could compare the hash of a downloaded file with the already-existing file, check if they match, and if they do match, discard/recycle the redundant copy.
But I'm guessing hashing is beyond the ability scope of JD (which isn't a big ordeal).
Only very little sites do provide hashes for their files, so comparing hash values with hash from file won't be possible in 99,99% of supported sites.
JDownloader could do that for sure, but for *file exists on disk checks* only filename/filesize are used because hash calculation of existing files will have major impact on system/disk/JDownloader performance. But with Eventscripter this can be possible to do. I just have to create some new script methods to calculate hash.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2495  
Old 01.12.2022, 21:07
bugs.bunny bugs.bunny is offline
Super Loader
 
Join Date: May 2020
Posts: 25
Default

Quote:
Originally Posted by bugs.bunny View Post
auto-unskip (from mgpai's repository: **External links are only visible to Support Staff**..., as stated here at post 523: https://board.jdownloader.org/showpo...&postcount=523)
Maybe I have to deliver a little bit more information about my problem... ;-)

I was able to "capture" the issue today. JDownloader says "Übersprungen - Captcha-Eingabe erforderlich", please see attachment. And it won't resume like the script should do.

If I check "Advanced Settings" - "EventScripter: Scripts" I can see that the script is executed regularly. Right at the moment with "lastFire":1669922359027 (which is 01.12.2022 20:19:19.027 GMT+01:00), so a few minutes ago. But the skipped packages stays in its state.

Is there a way to find out what's going on? Is there a specific logfile?

Here is the code snippet copy/pasted directly from "Advanced Settings":
Code:
{
  "eventTrigger"         : "INTERVAL",
  "eventTriggerSettings" : {
                            "lastFire"      : 1669922359027,
                            "interval"      : 3600000,
                            "isSynchronous" : true
                           },
  "id"                   : 1662975091080,
  "name"                 : "auto-unskip",
  "script"               : "// Unskip links with unsolved captcha\n// Trigger: Interval\n// Set interval to 3600000 (60 minutes) or more\n// Enable 'Synchronous Execution' checkbox in top panel\n// Related Post: https: //board.jdownloader.org/showpost.php?p=432828&postcount=522\n\n(function() {\n    if (!isSynchronous()) return;\n    if (interval < 60 * 60 * 1000) return;\n    getAllDownloadLinks().forEach(function(link) {\n        if (link.getSkippedReason() == \"CAPTCHA\") {\n            link.setSkipped(false);\n            if (!isDownloadControllerRunning()) startDownloads();\n        }\n    });\n})();",
  "enabled"              : true
 }
Attached Images
File Type: png Screenshot 2022-12-01 205259.png (225.8 KB, 3 views)
Reply With Quote
  #2496  
Old 02.12.2022, 11:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@bugs.bunny: script looks good and can't see why it should not work as intended.
Quote:
Originally Posted by bugs.bunny View Post
Is there a way to find out what's going on? Is there a specific logfile?
You might wanna add an alert("test"); afer setSkipped(false);
Quote:
link.setSkipped(false);
alert("test");
to check if the script reaches that line
also remove/comment the interval check line and set shorter interval to see results faster. then for example start a download and manually skip the captcha to reach this state and with interval of 1 minute, you should see results very fast
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 02.12.2022 at 11:07.
Reply With Quote
  #2497  
Old 02.12.2022, 12:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@bugs.bunny: Just got a reminder by mgpai that the interval script no longer supports synchronous execution. just remoev the line
Quote:
if (!isSynchronous()) return;
Update: ignore this. I guess it was misstake that this trigger no longer supports synchronous execution, just wait for next core update
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 02.12.2022 at 12:02.
Reply With Quote
  #2498  
Old 02.12.2022, 12:42
bugs.bunny bugs.bunny is offline
Super Loader
 
Join Date: May 2020
Posts: 25
Default

I can confirm that adding the line
Code:
alert("test");
doesn't do anything visible.

So I leave everything as it is and check again after the next core update? Did I get you right?
Reply With Quote
  #2499  
Old 02.12.2022, 14:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by bugs.bunny View Post
So I leave everything as it is and check again after the next core update? Did I get you right?
Correct
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2500  
Old 02.12.2022, 19:09
bugs.bunny bugs.bunny is offline
Super Loader
 
Join Date: May 2020
Posts: 25
Default

Wow... Just a few hours later the auto-updater updates JDownloader to Rev: #47153 and ***drum roll*** it works! :-) Incredible! Thank you so much for your support! Keep on rollin'!
Reply With Quote
  #2501  
Old 04.12.2022, 13:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@bugs.bunny: thanks for the feedback and confirmation that the script works again as intended
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2502  
Old 04.12.2022, 21:13
Ciesto Ciesto is offline
Modem User
 
Join Date: Nov 2015
Posts: 3
Default

Quote:
Originally Posted by mgpai View Post
Also, the script currently checks the status of individual downloads. It can be modified to check just the status of packages instead.
Hi...
I just discovered this script, which is about 95% what I was looking for. How do I have to modify the script that the extraction of the PACKAGE will start as soon as ALL links inside of this package are downloaded? Right now the script waits until all packages are completly downloaded.

In my case I do have often several packages with 2 or more archives.
Example:
Package 1:
archive_A_part1.rar
archive_A_part2.rar
archive_B_part1.rar
archive_B_part2.rar

Package 2:
archive_AA_part1.rar
archive_AA_part2.rar
archive_AA_part3.rar
archive_AA_part4.rar

As soon as all parts of archive_A and archive_B (the complete Package 1) are downloaded the extraction should start.

Edit: Sorry... forgot to mention that my question is related to this script:

https://board.jdownloader.org/showpo...&postcount=349

Alright... just figured it out by myself. Simpler than I thought.
Now my script looks like this:

Code:
// Extract all archives after thecomplete package is finished
// Trigger Required: Package Finished
// In "Archive Extractor" settings, disable the "Extract archives after download (default value)" checkbox
// Related Post: https://board.jdownloader.org/showpost.php?p=418712&postcount=345

if (package.isFinished()) startExtraction();


function startExtraction() {
    getAllDownloadLinks().forEach(function(link) {
        if (!link.getArchive()) return;
        if (!link.isFinished()) return;
        if (link.getExtractionStatus() != null) return;
        if (link.getArchive().getInfo().autoExtract == false) return;
        callAPI("extraction", "startExtractionNow", [link.getUUID()], []);
    });
}

Last edited by Ciesto; 04.12.2022 at 21:37. Reason: forget to mention for which cript my question is.
Reply With Quote
  #2503  
Old 06.12.2022, 22:40
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Random delay before download
    Trigger : A Download Started
    IMPORTANT : Enable "Synchronous execution" checkbox in the top panel
*/

var seconds = Math.floor(Math.random() * 5) + 1 // 1 to 5 seconds

while (seconds && !link.aborting) {
    sleep(seconds * 1000);
    seconds--;
}
Dear mgpai,
I got this error when running this script:

ReferenceError: "link" is not defined. (#9)

EDIT: Another thing I wanted to ask you is if I can separately combine the scripts: Randomize download order (https://board.jdownloader.org/showth...967#post492967) and Random delay before download, or should they both be in the same script?

Last edited by nano27; 06.12.2022 at 23:47.
Reply With Quote
  #2504  
Old 07.12.2022, 10:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@nano27: have you made sure to use the correct trigger like advised in script?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2505  
Old 07.12.2022, 14:10
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Quote:
Originally Posted by Jiaz View Post
@nano27: have you made sure to use the correct trigger like advised in script?
When I select 'A Download Started' and I open the EventScripter in Advanced Settings the following code appears:

{
"eventTrigger" : "ON_DOWNLOAD_CONTROLLER_START",
"eventTriggerSettings" : {},
"id" : 1670418113394,
"name" : "delay",
"script" : null,
"enabled" : true
}
]

In this case no error box appears, but the code doesn't work as it is 'null'.

Last edited by nano27; 07.12.2022 at 14:15.
Reply With Quote
  #2506  
Old 07.12.2022, 14:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@nano27: edit the scripts in JDownloader with GUI and then copy/paste the advanced Settings.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2507  
Old 07.12.2022, 14:55
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Quote:
Originally Posted by Jiaz View Post
@nano27: edit the scripts in JDownloader with GUI and then copy/paste the advanced Settings.
I don't understand what you mean, sorry about that. Could you be more detailed on what I should do?

What I did is paste the code in the Event Scripter:

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Random delay before download
    Trigger : A Download Started
    IMPORTANT : Enable "Synchronous execution" checkbox in the top panel
*/

var seconds = Math.floor(Math.random() * 5) + 1 // 1 to 5 seconds

while (seconds && !link.aborting) {
    sleep(seconds * 1000);
    seconds--;
}
Then when I open the EventScripter in Advanced Settings I see this:

{
"eventTrigger" : "ON_DOWNLOAD_CONTROLLER_START",
"eventTriggerSettings" : {},
"id" : 1670418113394,
"name" : "delay",
"script" : null,
"enabled" : true
}
]

So, the event trigger is wrong and the script is null. I've tried deleting the script and repeating the process, but always get the same result.
Reply With Quote
  #2508  
Old 07.12.2022, 15:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@nano27: You should use a JDownloader with GUI so you can GUI to setup your Eventscripter scripts and once finished with setup , then copy/paste EventScripter settings from Advanced Settings.
When you do it manually, you have to escape the script as JSON String and enter it in "script" field. That's why we recommend to use JDownloader with GUI for setup
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2509  
Old 07.12.2022, 17:01
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Quote:
Originally Posted by Jiaz View Post
@nano27: You should use a JDownloader with GUI so you can GUI to setup your Eventscripter scripts and once finished with setup , then copy/paste EventScripter settings from Advanced Settings.
When you do it manually, you have to escape the script as JSON String and enter it in "script" field. That's why we recommend to use JDownloader with GUI for setup
I found de problem, now is working. Thanks!

Last edited by nano27; 08.12.2022 at 06:06.
Reply With Quote
  #2510  
Old 07.12.2022, 23:28
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Could you make a script that pauses (sleep) for a random amount of time, every random amount of time between pauses, regardless of whether the file download has finished or not?

Last edited by nano27; 08.12.2022 at 06:05.
Reply With Quote
  #2511  
Old 08.12.2022, 10:10
DerChrimtess DerChrimtess is offline
Baby Loader
 
Join Date: May 2011
Posts: 7
Default

HI I am looking for a script that starts ( move from LinkGrabber to downloads ) the first ( alphabetical or first in list ) file in all Packages in the LinkGrabber .

So if I have 300Packages in the LinkGrabber that then 300 Downloads packages ( also as sub-folder with package name ) are created, each one with the first file in the LinkGrabber package. After that I still have 300Packages in the LinkGrabber Tab but each one with one file less in it.

Reason: I often create big packages and want to analyze what kind of files are in it.
For this right now i manually start to download the first file of each package and then use a windows batch file to analyze all downloaded files. But I have to spend a lot of clicking each time in JDownloader.

Maybe someone can offer me a Skeleton that does something similar and I can try to finish it myself, I have some basic programming experience but not that much.

Maybe someone who is good ad Event Scripter can do this in a quick time
Reply With Quote
  #2512  
Old 08.12.2022, 11:16
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 681
Default A switcher (icon, keyboard) to quickliy / easily switch between Firefox and Chrome to

A switcher (icon, keyboard) to quickliy / easily switch between Firefox and Chrome to automatically let JD solve the captchas in the one or the other browser would be nice.

https://board.jdownloader.org/showth...448#post514448
__________________
Aktuelles Windows
Reply With Quote
  #2513  
Old 08.12.2022, 11:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by nano27 View Post
Could you make a script that pauses (sleep) for a random amount of time, every random amount of time between pauses, regardless of whether the file download has finished or not?
similiar script to this, just for "Download Stopped"
https://board.jdownloader.org/showpo...postcount=2507
Quote:
var seconds = Math.floor(Math.random() * 5) + 1 // 1 to 5 seconds
sleep(seconds * 1000);
waits random 1-5 secs
Or do you mean something different?
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 08.12.2022 at 11:41.
Reply With Quote
  #2514  
Old 08.12.2022, 11:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by DerChrimtess View Post
So if I have 300Packages in the LinkGrabber that then 300 Downloads packages ( also as sub-folder with package name ) are created, each one with the first file in the LinkGrabber package. After that I still have 300Packages in the LinkGrabber Tab but each one with one file less in it.
Reason: I often create big packages and want to analyze what kind of files are in it.
For this right now i manually start to download the first file of each package and then use a windows batch file to analyze all downloaded files.
What exactly is the use case here? Sounds more like you're adding files and do some sort of finger printing/analyzing the files? For example you could easily auto disable all links by default, then move them to download list and script woud just enable the first link in each package and another script waits for download to be finished and then execute your batch file on the finished download. much easier than messing with packages and moving around single links and keeping rest in linkgrabber and so on
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2515  
Old 08.12.2022, 19:53
DerChrimtess DerChrimtess is offline
Baby Loader
 
Join Date: May 2011
Posts: 7
Default

@Jiaz

A script that just enables the first file of all packages in my download list is sufficient Can you help me with that

Last edited by DerChrimtess; 08.12.2022 at 19:56.
Reply With Quote
  #2516  
Old 08.12.2022, 22:54
nano27 nano27 is offline
Baby Loader
 
Join Date: Dec 2022
Posts: 6
Default

Is there any possibility to create a script that slows down the linkcrawler?

Instagram blocks my account every time I add a profile to download.

I'm assuming it's because JDowloader 'scans' the profile too fast and suspects there's a bot behind it.
Reply With Quote
  #2517  
Old 09.12.2022, 09:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@nano27: JDownloader has dedicated rate limit for IG, see Settings->Advanced Settings->instagram.com but most likely your account is flagged and you should use a different one for crawling/downloading.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2518  
Old 09.12.2022, 09:36
molitar molitar is offline
Mega Loader
 
Join Date: Jun 2010
Posts: 69
Question

resolved deleted

Last edited by molitar; 09.12.2022 at 09:42.
Reply With Quote
  #2519  
Old 09.12.2022, 11:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@molitar:
Quote:
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: unterminated string literal (#6)
check your script, this sounds like you made copy/paste issue or somewhere modified script and removed important " or ;
Also you have to correct escape your path
Code:
\' single quote
\" double quote
\\ backslash
\n newline
\r carriage return
\t tab
\b backspace
\f form feed
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 09.12.2022 at 11:21.
Reply With Quote
  #2520  
Old 09.12.2022, 11:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Quote:
Originally Posted by DerChrimtess View Post
@Jiaz
A script that just enables the first file of all packages in my download list is sufficient Can you help me with that
Please ask mgpai for help with this. I'm sure he will do some real magic and come up with super easy solution for this.

Update: see here for script that enables first link of each package, disables the rest, in download list you can place it at any trigger that suits you best
Code:
getAllFilePackages().forEach(function(package) {
    var first = true;
    package.getDownloadLinks().forEach(function(link) {
        if (first) {
            link.setEnabled(true);
            first = false;
        } else {
            link.setEnabled(false);
        }
    });
});
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 09.12.2022 at 11:27.
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 23: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.