JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 10.02.2015, 11:24
Firefly1337 Firefly1337 is offline
DSL Light User
 
Join Date: Feb 2015
Posts: 32
Default (Headless) EventScripter not working + MyJD False Update Message

Hello,

I'm running JD2 headless, but the EventScripter extension just doesn't work in headless mode.
If I run JD2 normally (GUI, not headless) everything works fine.

I already searched the logs and watched the console output, but nothing's in there, like it's never called.
Although I'm not quite sure if the dialogs are considered in headless, I made sure every dialog is set to 10 (= do not ask again) in cfg/Dialogs.json.

I have two scripts which basically just call a program.

----------------------
Second Bug:
'MyJDownloader' keeps telling me there's an update and I should restart, but there's no update to be installed and the message pops up again after a restart.
This happens only in headless mode, too.
Reply With Quote
  #2  
Old 11.02.2015, 11:31
Firefly1337 Firefly1337 is offline
DSL Light User
 
Join Date: Feb 2015
Posts: 32
Default

Anyone?

This is a huge problem. If my scripts aren't executed, JD becomes useless for me.



PS: You can answer in german, too / Ihr könnt auch auf Deutsch antworten.
Reply With Quote
  #3  
Old 11.02.2015, 11:41
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

I'm working on this since yesterday, and it will be fixed soon
__________________
Reply With Quote
  #4  
Old 11.02.2015, 11:56
Firefly1337 Firefly1337 is offline
DSL Light User
 
Join Date: Feb 2015
Posts: 32
Default

Thanks for the feedback, that's all I needed to hear
Reply With Quote
  #5  
Old 12.02.2015, 10:14
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Default

Are you saying it normally should be displayed when using the My JD page?
I ask because I am running JD from a NAS and need to add a script, but I can't find the option in the Settings page.
Reply With Quote
  #6  
Old 12.02.2015, 10:25
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

NO, there is no Gui at my.jdownloader yet. But you can modify the data backend in the advanced settings.



Example:
Code:
[  
   {  
      "eventTrigger":"ON_DOWNLOAD_CONTROLLER_STOPPED",
      "enabled":true,
      "name":"On Download Ready",
      "script":"if (package.isFinished()) {\n    alert(\"Eine Messagebox: \" + link.getDownloadPath());\n}\n\n  alert(\"Package: \" + package.getBytesLoaded()+\"/\"+package.getBytesTotal());"
   }
   
]
Available Triggers:
ON_DOWNLOAD_CONTROLLER_START,ON_DOWNLOAD_CONTROLLER_STOPPED,ON_JDOWNLOADER_STARTED,ON_OUTGOING_REMOT E_API_EVENT,ON_NEW_FILE,ON_NEW_CRAWLER_JOB,ON_PACKAGIZER
__________________
Reply With Quote
  #7  
Old 12.02.2015, 10:29
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Default

Well then in my Web version it's not there.
I am running Core Revision #29020.
Reply With Quote
  #8  
Old 12.02.2015, 10:35
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

There will be a new core update in a few minutes. If the EventScripter Extension is installed, it will be available in the headless version as well afterwards.


if it's not installed, you have to install it first: java -jar JDownloader.jar -install eventscripter
__________________

Last edited by raztoki; 12.02.2015 at 10:56. Reason: rename org to jar
Reply With Quote
  #9  
Old 12.02.2015, 10:51
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Thumbs up

Quote:
Originally Posted by coalado View Post
JDownloader.org
I suppose it should be
Code:
JDownloader.jar
right?

But then in what folder should I run the command?
The one where I installed JDownloader or in the JavaManager one?
Reply With Quote
  #10  
Old 12.02.2015, 10:56
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,204
Default

yes, he made a small mistake ;p. I edited his post to reflect correct syntax
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #11  
Old 12.02.2015, 11:21
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Default

Quote:
Originally Posted by Cr4z33 View Post
I suppose it should be
Code:
JDownloader.jar
right?

But then in what folder should I run the command?
The one where I installed JDownloader or in the JavaManager one?
Solved.
Forgot to stop Java before going to run that command.
Thanks again.
Reply With Quote
  #12  
Old 12.02.2015, 12:12
Firefly1337 Firefly1337 is offline
DSL Light User
 
Join Date: Feb 2015
Posts: 32
Default

It's working so far
Thank you coalado.

Plus: Either you fixed the update issue, too, or it just resolved itself.

But I still have one quick question:
Are you planning on making more triggers? E.g. package finished etc.
Right now I have to do it manually via link.getPackage().isFinished() for every link to check if the link's package is finished.
Reply With Quote
  #13  
Old 12.02.2015, 14:32
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Default

I was prompted to run a JD update later today, but at the reboot the EventScripter Settings entry has disappeared.

Do I have to reinstall it at every update...?
Reply With Quote
  #14  
Old 12.02.2015, 15:15
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

no
__________________
Reply With Quote
  #15  
Old 12.02.2015, 15:20
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Default

Quote:
Originally Posted by coalado View Post
no
OK... so do I have to report that as a bug?
Reply With Quote
  #16  
Old 12.02.2015, 15:31
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

please check if you can reproduce this.
and check if the EventScripter.jar is in your extensions folder
__________________
Reply With Quote
  #17  
Old 12.02.2015, 18:12
Cr4z33's Avatar
Cr4z33 Cr4z33 is offline
Bandwidth Beast
 
Join Date: Jun 2009
Location: Italy
Posts: 143
Default

Quote:
Originally Posted by coalado View Post
please check if you can reproduce this.
and check if the EventScripter.jar is in your extensions folder
It is.

I am going to install that JAR again and let's see what happens...

Update:
Although I am not a real JD geek installation looks fine watching at the terminal window, but then when I reload JD and go into the Web panel the EventScripter entry doesn't come up...

I don't wanna spam this thread so guess I should send a message by the My JD Feedback panel or?

Last edited by Cr4z33; 12.02.2015 at 18:20.
Reply With Quote
  #18  
Old 12.02.2015, 18:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,502
Default

Just contact us via support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 13.02.2015, 10:06
Firefly1337 Firefly1337 is offline
DSL Light User
 
Join Date: Feb 2015
Posts: 32
Default

Unfortunately in combination with the FolderWatch extension it's not working.
With manually added packages it works fine now, but if they're added automatically with a .crawljob file it's not.
Reply With Quote
  #20  
Old 13.02.2015, 10:36
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

Please join our chat for a teamviewer session. this would make things much easier.
__________________
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 15:33.
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 - 2019, Jelsoft Enterprises Ltd.