JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 10.09.2021, 22:51
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
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 23:24.
Reply With Quote
  #22  
Old 11.09.2021, 12:35
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
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, 21:17
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
Default

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

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

@tunayx: A script is not required if you use the settings in my previous post.
Reply With Quote
  #25  
Old 11.09.2021, 22:34
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
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, 22:52
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
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, 23:24
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
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, 12:14
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
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, 19:04
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
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, 20:47
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
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, 20:48
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 744
Default

Sorry duplicate post
Reply With Quote
  #32  
Old 13.09.2021, 11:15
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
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, 18:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
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 18:40.
Reply With Quote
  #34  
Old 08.08.2022, 16:24
tlckfeks tlckfeks is offline
DSL Light User
 
Join Date: May 2020
Location: Atlantis
Posts: 30
Default

https://board.jdownloader.org/showthread.php?t=86398
I also wrote the above post last year.

I also found these.
https://board.jdownloader.org/showthread.php?t=71959
reddit(dot)com/r/jdownloader/comments/n40tuj/disable_creating_folders_for_single_file

I understand your thoughts.
I've been struggling with this issue for over 2 years.
Did you solve this issue?

Last edited by tlckfeks; 11.08.2022 at 08:44.
Reply With Quote
  #35  
Old 09.08.2022, 18:37
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Please wait for an answer of Jiaz regarding this topic.

EDIT2
You're allowed to push your other thread!
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 09.08.2022 at 18:38. Reason: Fixed typo
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:42.
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.