JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08.09.2021, 13:03
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default If a package has only one mp3 file don't create package

If a package has only one mp3 (or music) file don't create package. Instead of creating package, save to default download folder. So that we don't have hundreds of folders each one contains one mp3. Is this possible?
Reply With Quote
  #2  
Old 08.09.2021, 13:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

That's what the "Various package" is for. It *collects* all single link items, but you have to disable https://support.jdownloader.org/Know...ackage-feature else JDownloader will create custom package with auto package name
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 08.09.2021, 14:41
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

I enabled "Various package" then follow the guide. But without unchecked save > create subfolder but it doesn't work. I think I'm missing something at Predefined rule: Create subfolder by packagename section. Also rule must be available only for audio files.

Last edited by tunayx; 08.09.2021 at 14:51.
Reply With Quote
  #4  
Old 08.09.2021, 14:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Create a copy for the subfolder rule, disable the default one and customize the copy to only process NON audio filetype. That should work as expected
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 08.09.2021, 15:08
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

Now every single file downloading without package name.

Last edited by tunayx; 08.09.2021 at 15:18.
Reply With Quote
  #6  
Old 08.09.2021, 15:19
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

I tried my settings below, now every file downloading without any package name.

**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

Last edited by tunayx; 08.09.2021 at 15:21.
Reply With Quote
  #7  
Old 08.09.2021, 15:24
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

First checkbox: matches on any
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 08.09.2021, 15:26
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

Already checked.
Reply With Quote
  #9  
Old 08.09.2021, 15:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

You have to uncheck it, else the rule will match on ANY link
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 08.09.2021, 15:35
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

I see you mean uncheck matches on any. Now only problem I want if package has only 1 audio file then don't create package name just download to predefined folder. Another problem even for exe files package name always "Various Files" in other words package name can't be automatically created.

my settings
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #11  
Old 08.09.2021, 15:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Your rule is correct. JDownloader processes rules from top to bottom, so make sure the rule is at last.
You should also specify a package name for list. the directory doesn't contain package tag, so JDownloader doesn't create extra folder for it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 08.09.2021, 15:54
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

It's the only rule enabled. But multiple audio files also downloaded without package name. I want only if the package has one audio file then download without package name.
Reply With Quote
  #13  
Old 08.09.2021, 15:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

It's not possible to create such rules. Rules don't have any knowledge about other links/packages.
Such rules can easily create loops and the outcome of the rules define the information that is condition of the rule itself.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 08.09.2021, 17:53
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

Currently with my rule in the screenshot, the packages even more than one mp3 files also go to same folder. Albums, eps must be downloaded the package name I choose and all single mp3s must go to the predefined folder. But there's no rule "if package has 1" file so I can't do it.

P.S Sorry for late answer. There's a vagabond donkey in on our district, I go to feed him.
Reply With Quote
  #15  
Old 08.09.2021, 18:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@tunayx: Do you add individual links manually or a link that results in multiple links? Can you provide examples? In case a decrypter plugin is involved, maybe we can find a solution.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 08.09.2021, 20:32
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

Sure, I add multiple links (I don't use link that results in multiple links) then create package by giving it a name so all songs related to album goes that folder. But sometimes I add multiple links but each belongs different artist-album so I don't want any package-folder name for each one but I want them to be saved to predefined folder. This must be valid for only audio files.

Here's example, I set the package name by myself as Sugardaddy - How Long
Will be saved to:
e:\1 DOWNLOADS\Sugardaddy - How Long\

<a href="**External links are only visible to Support Staff**>Download</a>
<a href="**External links are only visible to Support Staff**>Download</a>
<a href="**External links are only visible to Support Staff**>Download</a>
<a href="**External links are only visible to Support Staff**>Download</a>
<a href="**External links are only visible to Support Staff**>Download</a>
<a href="**External links are only visible to Support Staff**>Download</a>
<a href="**External links are only visible to Support Staff**>Download</a>

And for just one track, this should be go to predefined folder (like MyMP3s) without package name created.

**External links are only visible to Support Staff****External links are only visible to Support Staff**

Such one track songs always will be saved to without any user interaction:
e:\1 DOWNLOADS\MyMP3s\

Not

e:\1 DOWNLOADS\<jd:packagename>
Reply With Quote
  #17  
Old 09.09.2021, 12:33
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

Visual explain

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #18  
Old 09.09.2021, 16:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@tunayx: What I don't understand? You add the links first and them customize the package name? and move/organize the links? When you organize them, easily rightclick-> move to new package, there you specify the package name and can enable/disable the subfolder checkbox?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 09.09.2021, 21:33
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

Enable/disable the subfolder checkbox or set the package name for each "one song" package is really tiring & time wasting. Also such folders each has one songs in my computer causes big mess. I want albums have folders and all such single songs go to predefined directory so no more digging to find out which folder is an album.
Reply With Quote
  #20  
Old 10.09.2021, 19:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@tunayx: why not disable subfolders by default? then you only have to enable it once for each album package
eg create subfolder rule that does not auto subfolder links from your source and then you can organize them and last step, set subfolder for those album packages easily

You could also create a custom rightclick context menu action that auto handles this for you, see
https://board.jdownloader.org/showthread.php?t=70525
maybe ask mgpai for hints/help with creating such a script.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #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: 743
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: 743
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: 743
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: 743
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: 743
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: 743
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: 743
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,286
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 online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,913
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 17: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 - 2024, Jelsoft Enterprises Ltd.