#621
|
|||
|
|||
![]()
Hi MGPAI
Do you take requests? I need a script that can do pre filtering for instagram by checking file on disk with download list and disable/remove those links that are already on disk and not check with actual download attempt. Thanks in advance for your answer! |
#622
|
|||
|
|||
![]()
Hi
I tried to integrate the scripts from thecoder2012, but did not work. Can someone give me a guide on how to properly integrate scripts. Many Thanks ![]() |
#623
|
||||
|
||||
![]()
What problems do you have with the script? any errors? what exactly do you need help with?
__________________
JD-Dev & Server-Admin |
#624
|
|||
|
|||
![]() Quote:
Hi mgpai What and how do I have to enter exactly at name == Export Urls. |
#625
|
|||
|
|||
![]()
The script shows no errors, but does not stop the download as soon as there is no more credit at 9kw.
|
#626
|
|||
|
|||
![]() Quote:
Would it be possible to use this script also for 'skipped - captcha input' required, if so how do I have to change the script. |
#627
|
|||
|
|||
![]() Quote:
Code:
// Disable (instagram) links if file exists on disk // Trigger: Remote API Event Fired if (event.id == "ADD_PACKAGE") { var data = JSON.parse(event.data); var package = getDownloadPackageByUUID(data.uuid); package.getDownloadLinks().forEach(function(link) { if (link.getHost() != "instagram.com") return; if (!getPath(link.getDownloadPath()).exists()) return; link.setEnabled(false); }) } |
#628
|
|||
|
|||
![]()
Quote:
Code:
setDownloadsPaused(true); Code:
stopDownloads(); Quote:
Code:
"NO_ACCOUNT" Code:
"CAPTCHA" |
#629
|
|||
|
|||
![]()
@bach: Looking at the timestamps of your posts, it seems like they are only visible to me/public only after they are approved by mods. Could be the same reason I missed one of them last time around. You can contact me in JD Chat if you find any of your posts missing here.
|
#630
|
|||
|
|||
![]() Quote:
Hi mgpai I need your help for the queue script again. The script shows errors in the 23 line. Syntax Error: Unterminated objekt literal Error Report net.sourceforge.htmlunit.corejs.javascript.EcmaError: SyntaxError: Unterminated object literal (#23) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3629) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3613) at net.sourceforge.htmlunit.corejs.javascript.NativeJSON.parse(NativeJSON.java:125) at net.sourceforge.htmlunit.corejs.javascript.NativeJSON.execIdCall(NativeJSON.java:97) at net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:89) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531) at script.check9kw_queue(:23) at script(:6) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitP ermissionRestricter.java:119) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) at org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:254) at org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:148) at org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:128) |
#631
|
|||
|
|||
![]()
Which script?
I have tested the first one, and it worked fine. I don't have a 9kw account, so I cannot check the second one, but that also appears to be fine. Look for any typos. If you post the script here (from your JD Installation) we can check it. |
#632
|
|||
|
|||
![]() Quote:
This is the script that works for me and it always displays the error and disables the script. // Queue check for 9kw.eu // Trigger Required: Interval var newInterval = 10000; if (interval == newInterval) { check9kw_queue(); } else { interval = newInterval; } function check9kw_queue() { var settings_9kw = "org.jdownloader.captcha.v2.solver.solver9kw.Captcha9kwSettings"; var https = callAPI("config", "get", settings_9kw, null, "https"); var servercheck_page = '://www.9kw.eu/grafik/servercheck.json'; var servercheck; if (https == 1) { servercheck = getPage("https" + servercheck_page); } else { servercheck = getPage("http" + servercheck_page); } if (servercheck.match(/^\{/)) { var queue = JSON.parse(servercheck).queue; if (parseInt(queue) > 100) { //callAPI("downloadsV2", "setStopMark", linkUUID, -1);//Set stop mark on link //callAPI("downloadsV2", "setStopMark", -1, packageUUID);//Set stop mark on package setDownloadsPaused(true); //alert("High queue. " + "(" + queue + ")"); } else { //callAPI("downloadsV2", "removeStopMark");//Remove stop mark setDownloadsPaused(false); } } } |
#633
|
|||
|
|||
![]()
Seeing as you have not modified it, this too is working fine for me. Can you contact me in JD Chat? I can help you troubleshoot it.
|
#634
|
|||
|
|||
![]()
Hi
These scripts work 'Check for enough credits (captcha service 9kw.eu)' and 'Unskip 'account missing' links at user specified interval (for captchas)'. The problem, if these scripts are activated, no more captchas over 9kw will be solved. Where could the mistake be? |
#635
|
|||
|
|||
![]() Quote:
|
#636
|
|||
|
|||
![]()
Please find me in JD Chat when you are free.
|
#637
|
|||
|
|||
![]()
Hi ! Is there a way to change settings (for example, checking or unchecking the "mininmize to tray" option) ?
I didn't found it in the help... Thanks ! Last edited by bobolecoco; 13.03.2019 at 13:19. |
#638
|
||||
|
||||
![]()
I do not see any such button in either linkgrabber or downloads for the two event triggers regardless that the eventscripter trigger menuitem is set to visible for both sections:
Linkgrabber Contextmenu Button Pressed DownloadList Contextmenu Button Pressed |
#639
|
||||
|
||||
![]()
@PRNet: did you customize the context menu to include those buttons?
__________________
JD-Dev & Server-Admin |
#640
|
||||
|
||||
![]() Quote:
What exactly do you want to achieve?
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|