#541
|
||||
|
||||
![]()
@chaostheory: why would the file switch back to online on later linkcheck? in case the file is shown as offline because some sort of temp block is in place, then we should update the plugin to handle that
__________________
JD-Dev & Server-Admin |
#542
|
||||
|
||||
![]()
irresponsible type of request, that could/would create ddos event....
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#543
|
|||
|
|||
![]()
This is perfectly responsible. I am using filebit multihoster, downloading ~100 GB per night across ~50-100 links. Every single time I am waking up to 5-6 "file not found" statuses. I am forcing "check online status" and they're "suddenly" online and ready to be downloaded again.
GFYCAT: **External links are only visible to Support Staff****External links are only visible to Support Staff** I can reproduce it as many times as you want it. The reason I asked for script like that is right there. Every day I have 5-6 offline packages which leaves me usually with downloads at 95-99% percent that I need to force download manually to actually finish. Last edited by chaostheory; 30.12.2018 at 04:02. Reason: added gfycat |
#544
|
||||
|
||||
![]()
just the way you approach it is irresponsible
if you had 50 - 100 links requesting every 15seconds is 1 request every 1.2(50links)-0.6(100links) seconds. If it did this task once an hour sure or even half hour, but not every 15 seconds I would personally would like to find out why its happen vs making a work around (which is what Jiaz was alluding to). Maybe they are reporting offline or maybe a plugin issue because filename and or filesize can't be found. Maybe due to your request limit or download limit reached. Without seeing a log its hard to say why.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#545
|
|||
|
|||
![]()
First things first, I think you missed the part where I specifically wrote:
Quote:
Then there's at best ~10 links to check every 15 seconds. This is not much and wouldn't trigger a DDOS warning on providers end, there's no way. Hell, we can even up that time to 60 seconds or 120 seconds, this won't make much of a difference for provider/hoster, but it will for me. Last edited by chaostheory; 31.12.2018 at 03:04. |
#546
|
||||
|
||||
![]()
I read what you wrote buddy and fully understand what you said. I even agree with you that 10 parts it shouldnt create a ddos event (maybe it would with multiple hundred+ would more likely create this issue), files just its still the wrong approach. fix the underlying issue which is causing false positive (reporting as offline).
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#547
|
|||
|
|||
![]()
Almost two years ago I had problems with the "permissions required" dialog that popped up every time my scripts accessed the file system.
https://board.jdownloader.org/showth...t=70525&page=3 Jiaz made a change to that behavior, and instead of popping up 9 times, it is now popping up only ONCE. Thank you for that! I do not want to seem greedy, but is it possible to add a solution that disables these alerts completely? I am aware of the security issues that might arise from using foreign scripts... how about adding a button next to "synchronous execution of script" (call it something like "grant all permissions"). This button would then affect only that specific script and allow scripters to optimize their own script without having to deal with this dialog again (and again and again...). Apart from that I noticed a new behavior of the editor, and I do not know whether it's a new feature or a bug: chars like ({["' always appear in pairs when I type them. Thus, typing a left bracket "(" results in "()". Last edited by umax; 10.01.2019 at 15:01. |
#548
|
|||
|
|||
![]() Quote:
Code:
disablePermissionChecks(); It is a feature of the editorKit (JSyntaxPane) used by JD (updated a few months back). While it is meant to make writing scripts easier, it is doing quite the opposite (at least for me). |
#549
|
|||
|
|||
![]() Code:
disablePermissionChecks(); Quote:
Quote:
For larger projects I will now use an external editor. |
#550
|
|||
|
|||
![]()
I think I found the bug in my code :(
Just in case anyone is interested, please find the fixed code below Code:
var JDOWNLOADER="**External links are only visible to Support Staff**; var data= { "passwords" : "", "source": "", "package": package, "urls": link, "submit": "submit" }; console.debug(JDOWNLOADER, data); GM.xmlHttpRequest({ method: "POST", url: JDOWNLOADER, data: objEncodeURIComponent(data), headers: { "Content-Type": "application/x-www-form-urlencoded" }, }); function objEncodeURIComponent(obj) { var str = []; for (var p in obj) if (obj.hasOwnProperty(p)) { str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p])); } return str.join("&"); } The original question (in German) can be found here: https://board.jdownloader.org/showthread.php?t=79637 ------------ Hi! I'm using a greasemonkey script to send my URLs to jDownloader. I also add package information. jDownloader just receives the links, the package is ignored. My assumption is, that the packagizer interferes here and sorts my links under "Various Files". How can I fix that? This is the part of the code which sends to jDownloader: Code:
var JDOWNLOADER="**External links are only visible to Support Staff**; var data= { "passwords" : "", "source": "", "package": package, "urls": link, "submit": "submit" }; console.debug(JDOWNLOADER, data); GM.xmlHttpRequest({ method: "POST", url: JDOWNLOADER, data: "password=&source=&package=&submit=submit&urls=" + encodeURIComponent(link), headers: { "Content-Type": "application/x-www-form-urlencoded" } } }); I'm not sure whether or not it's important, but the package name contains spaces. Last edited by Skeeve; 18.01.2019 at 15:29. |
#551
|
||||
|
||||
![]()
You're welcome to post it here as it could be helpful for other users
![]() -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#552
|
|||
|
|||
![]()
I am trying to use the scripter program in the JDownloader2 GUI program.
I am wanting it process my downloads when they complete by running a script/event trigger that tells it to run filebot with the amc script. Rednoah on another page suggested that I use var script = 'C:/jdownloader-postprocess.cmd' which is a Windows cmd file that I think he created but I put that in the script and nothing triggers filebot after the download completes. He suggested I come here for help on this and also to check the log files. My other issue is where are the log files for my event script or how do I get it to create one so I can try and figure this out. Thanks for any help on this. |
#553
|
|||
|
|||
![]()
Hello,
Could someone help me make a event script / trigger in JDownloader2? This is on Windows 10 64 bit also. I want it to trigger after my downloads complete. Once the file downloads I want it to run filebot and the amc script to process the video files and rename them and move them to the correct folder. If I could get some help on creating this it would be great. |
#554
|
||||
|
||||
![]()
Merged EventScripter threads.
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#555
|
|||
|
|||
![]()
@chest069: Make sure the script is located in the specified path. You can contact me in JD Chat if you need any help with the troubleshooting.
|
#556
|
||||
|
||||
![]() Quote:
![]() ![]()
__________________
JD-Dev & Server-Admin |
#557
|
|||
|
|||
![]()
I would like to trigger updates after a reconnect, can you tell me how to modify the script for this?
Why dont't you need to check isDonwloading() ? thank you. |
#558
|
|||
|
|||
![]()
It might better to restart and update "Before a Reconnect". Running it "After a Reconnect", may interrupt downloads or any other activities which have started immediately after the reconnect, in which case updating while idle is a better option.
This script can also be used with "After a Reconnect" trigger. Code:
// Restart and update, if updates are available // Trigger: Before a Reconnect if (callAPI("update", "isUpdateAvailable")) callAPI("update", "restartAndUpdate"); It does check if downloads are running (isDownloadControllerIdle()). |
#559
|
|||
|
|||
![]()
Oh, so the line
// Trigger Required: "Interval" is not a comment. Thank you. |
#560
|
|||
|
|||
![]()
well, obviously I missed something. Reading more about it the event scripter requires json code. Bin I dont find a howto for it. Is there an howto or do I have to try to get it working using examples?!
|
![]() |
Thread Tools | |
Display Modes | |
|
|