JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 06.11.2016, 00:44
9999999adrian
Guest
 
Posts: n/a
Post Event Scripter - Move package to download list

Hi,

Is it possible to move a package from the linkgrabberlist to the downloadlist using the trigger "Linkgrabber Contextmenu Button Pressed"?

The only command I found was "myPackagizerLink.setAutoConfirmEnabled(myBoolean);"
from the "Packagizer-Hook" trigger. But I wasn't able to use it with the Contextmenu trigger.

Any suggestions?
Thx
Reply With Quote
  #2  
Old 07.11.2016, 09:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

I suggest to ask mgpai for help. He is very talended with eventscripter api. You will have to use the remote api from within the eventscripter.
Maybe here you can find something useful
https://board.jdownloader.org/showthread.php?t=70525
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 03.11.2018, 16:08
9999999adrian
Guest
 
Posts: n/a
Default Solution

Ok, so for everyone having the same issue, here is how I solved it:

Quote:
var myLinkgrabberSelection = lgSelection;
var myCrawledPackage = myLinkgrabberSelection.getContextPackage();
callAPI("linkgrabberv2", "moveToDownloadlist", [], [myCrawledPackage.getUUID()]);
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 01:13.
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.