JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
Reply
 
Thread Tools Display Modes
  #1  
Old 28.09.2016, 13:38
infkeops infkeops is offline
Super Loader
 
Join Date: Aug 2010
Posts: 29
Default Split files in a package into multiples subfolders

Hi. Is it possible split the files in a package into a series of subfolders based on a determined amount of them? For example, grab an Instagram account with many files and split them every 200 files into a separate folder, but only the pictures. And create another subfolder for the videos. Is it possible?

Example:

Package name: insta_example
Total files 430 (425 picures + 5 videos)

Destination folder:
<jd:packagename>\01 (100 JPG)
<jd:packagename>\02 (100 JPG)
<jd:packagename>\03 (100 JPG)
<jd:packagename>\04 (100 JPG)
<jd:packagename>\05 (25 JPG)
<jd:packagename>\videos (5 mp4)
Reply With Quote
  #2  
Old 28.09.2016, 14:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Not possible via packagizer. Any reason why you want the split?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 28.09.2016, 14:53
infkeops infkeops is offline
Super Loader
 
Join Date: Aug 2010
Posts: 29
Default

Just because I transfer those files into my phone and it's easy to manage them that way.

Thanks Jiaz.
Reply With Quote
  #4  
Old 28.09.2016, 16:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

I'm sorry but I dont see any easy way to do this out of the box. You could ask mgpai (in english) for help with eventscripter to write little script that auto splits the packages for you.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 29.09.2016, 14:07
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,553
Default

Create packagizer rules to move images and videos to different packages and create base folders (e.g. <jd:packagename>\videos or <jd:packagename>\images). Use script to split the resulting package(s) and create sub-folder based on package length.

Script -> Link

Pre:



Post:

Reply With Quote
  #6  
Old 29.09.2016, 14:48
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Thanks for your help *thumbs up*
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 05.10.2016, 21:19
infkeops infkeops is offline
Super Loader
 
Join Date: Aug 2010
Posts: 29
Default

Awesome! Thanks a lot mgpai.

I had never used the packagizer before, but after a little big try and error I've managed not only to create the rule of separation packages, but some more to my usual downloads.

After that, the script works perfect every time I've tried it.

I'm not a programmer in any way but I like to try to understand how the things work. Broadly I understand how it works. What I did not understood was how it's added the "0's" which completes the folder name according to the number of them to create. (none up to 9, "01" instead of "1" up to 99, "001" instead of "01" or "1" up to 999,...). I researched until I understood what the pad(num) function does.

Last edited by infkeops; 05.10.2016 at 21:23.
Reply With Quote
  #8  
Old 05.10.2016, 21:21
infkeops infkeops is offline
Super Loader
 
Join Date: Aug 2010
Posts: 29
Default

Now I have some questions about packagizer. Do I have to open another post to make them? I think it could have individual value.
Reply With Quote
  #9  
Old 06.10.2016, 10:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Either create new Thread, or contact us via support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 06.10.2016, 10:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

In case your question is about script, you can also pm mgpai and ask for help
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 07.10.2016, 14:24
infkeops infkeops is offline
Super Loader
 
Join Date: Aug 2010
Posts: 29
Default

OK. Thanks.
Reply With Quote
Reply


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 14:40.
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.