JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #21  
Old 10.09.2021, 21:51
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

Subfolders essential for me. From the same source I download albums & single audio files. So creating a rule for specific source isn't possible. Imagine you download 100 songs a day. 50 of them single audio and 5 album each has 10 audio files then you have 55 folder, now it's time to dig and find albums and then also move all single audios from its folders. The tool Deemix has this feature, that's when I realize how useful downloading single audio files without folder name (by unchecking create folders for single audio files) and Deemix creates folders for more than one audio files. That's why I ask for such feature. Right click on each single audio also very tiring & time wasting. Only auto rule saves such clutter.

Last edited by tunayx; 10.09.2021 at 22:24.
Reply With Quote
  #22  
Old 11.09.2021, 11:35
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,338
Default

@tunayx: You only need to increase sub-folder threshold in advanced settings and leave other 2 settings at default.
  • Disable 'various package' option (optional).
  • Disable or remove custom 'sub-folder by package' rule created by you (optional).
  • Enable default 'sub-folder by package' rule.
  • In advanced settings, set "LinkgrabberSettings.subfolderthreshold" value to '1' (requires restart).
Reply With Quote
  #23  
Old 11.09.2021, 20:17
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

@mgpai Thank you, could you tell me where can I find the script.

Last edited by tunayx; 11.09.2021 at 20:31.
Reply With Quote
  #24  
Old 11.09.2021, 20:41
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,338
Default

@tunayx: A script is not required if you use the settings in my previous post.
Reply With Quote
  #25  
Old 11.09.2021, 21:34
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

Quote:
Originally Posted by mgpai View Post
@tunayx: A script is not required if you use the settings in my previous post.
I did it, but still subfolders created for single audio packs. What do you mean by saying "leave other 2 settings at default."
Also I want this only for audio files not for other file types.
Reply With Quote
  #26  
Old 11.09.2021, 21:52
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,338
Default

Quote:
Originally Posted by tunayx View Post
I did it, but still subfolders created for single audio packs. What do you mean by saying "leave other 2 settings at default."
Also I want this only for audio files not for other file types.
The 2 settings refer to the various package and sub-folder rule, which you have changed/mentioned in your earlier posts.

It is not based on file type, but based on number of files in the package. It is applied when the links are sent to the download list, hence it will not change the sub-folder settings which are already in the download list. The sub-folder placeholder will still be visible for packages with single as well as multiple links when the links are in linkgrabber list, but they will be applied only to packages which have more links than the threshold specified in the advanced setting, which in this case is 1. Packages with single links will be downloaded to the default folder.

Since you are organizing multiple links into single packages manually, a fully automated/unattended solution is not possible even with a eventscripter script.
Reply With Quote
  #27  
Old 11.09.2021, 22:24
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

I see, is it possible to create a button which can set 0/1 sub-folder threshold.
Reply With Quote
  #28  
Old 12.09.2021, 11:14
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,338
Default

Quote:
Originally Posted by tunayx View Post
I see, is it possible to create a button which can set 0/1 sub-folder threshold.
Code:
/*
    Toggle subfolder threshold
    Trigger: Toolbar button pressed
    Customize main toolbar > add a new "Eventscripter Trigger" button > rename it to "Toggle subfolder threshold"
*/

if (name == "Toggle subfolder threshold") {

    var sft = [
        "org.jdownloader.gui.views.linkgrabber.addlinksdialog.LinkgrabberSettings", null,
        "SubfolderThreshold"
    ]
    var value = callAPI('config', 'get', sft) ? 0 : 1;
    var toggle = callAPI('config', 'set', sft.concat(value));

    alert("Subfolder threshold: " + value);
}
Reply With Quote
  #29  
Old 12.09.2021, 18:04
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

@mgpai The script doesn't change that value. Also setting subfolder threshold still creates folders for one file packages.
Reply With Quote
  #30  
Old 12.09.2021, 19:47
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

@mgpai The script doesn't change that value. Also setting subfolder threshold still creates folders for one file packages.
Reply With Quote
  #31  
Old 12.09.2021, 19:48
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 739
Default

Sorry duplicate post
Reply With Quote
  #32  
Old 13.09.2021, 10:15
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,338
Default

Quote:
Originally Posted by tunayx View Post
@mgpai The script doesn't change that value. Also setting subfolder threshold still creates folders for one file packages.
Both appear to be working fine during testing. Find me in JD Chat if you need help with troubleshooting.

Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader
Reply With Quote
  #33  
Old 17.09.2021, 17:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,600
Default

@mgpai: That change requires a restart. Also this change will affect all packages in linkgrabber, not just the new ones
@tunayx: why not just set SubfolderThreshold to 1? so no subfolders for single file packages
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 17.09.2021 at 17:40.
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 05:17.
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 - 2021, Jelsoft Enterprises Ltd.