JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 26.05.2022, 16:27
onyhow onyhow is offline
Modem User
 
Join Date: May 2022
Posts: 4
Default [EventScripter] Insert an extra level into mega.nz folder structure?

Is there a way to set a packagizer ruler so that I can insert an extra folder level in between?

Specifically, what I'm trying to download from mega is structured in a\b\c\d. I want to insert a folder and make it like this: a\INSERT FOLDER HERE\b\c\d. The name there will be a static folder name.

Thanks!
Reply With Quote
  #2  
Old 26.05.2022, 18:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,841
Default

@onyhow: I would recommend to use the Eventscripter for this and a script with event "Packagizer Hook" which is called twice, before the packagizer rules are applied and once more after the rules have been processed (this is what you want).
The script then can check on link (is it mega?) and modify the download path according to your idea/wishes. Please check this thread https://board.jdownloader.org/showthread.php?t=70525
In doubt or need help/got questions, please ask in that thread
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 26.05.2022, 19:04
onyhow onyhow is offline
Modem User
 
Join Date: May 2022
Posts: 4
Default

Quote:
Originally Posted by Jiaz View Post
@onyhow: I would recommend to use the Eventscripter for this and a script with event "Packagizer Hook" which is called twice, before the packagizer rules are applied and once more after the rules have been processed (this is what you want).
The script then can check on link (is it mega?) and modify the download path according to your idea/wishes. Please check this thread **External links are only visible to Support Staff**...
In doubt or need help/got questions, please ask in that thread
Understood. Will try that. Thank you!
Reply With Quote
  #4  
Old 26.05.2022, 19:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,841
Default

Quote:
Originally Posted by onyhow View Post
Understood. Will try that. Thank you!
Of course if you need help/are stuck, please just ask!
__________________
JD-Dev & Server-Admin
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 11:00.
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 - 2022, Jelsoft Enterprises Ltd.