#1
|
||||
|
||||
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?
|
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
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 13:51. |
#4
|
||||
|
||||
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 |
#5
|
||||
|
||||
Now every single file downloading without package name.
Last edited by tunayx; 08.09.2021 at 14:18. |
#6
|
||||
|
||||
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 14:21. |
#7
|
||||
|
||||
First checkbox: matches on any
__________________
JD-Dev & Server-Admin |
#8
|
||||
|
||||
Already checked.
|
#9
|
||||
|
||||
You have to uncheck it, else the rule will match on ANY link
__________________
JD-Dev & Server-Admin |
#10
|
||||
|
||||
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** |
#11
|
||||
|
||||
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 |
#12
|
||||
|
||||
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.
|
#13
|
||||
|
||||
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 |
#14
|
||||
|
||||
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. |
#15
|
||||
|
||||
@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 |
#16
|
||||
|
||||
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> |
#17
|
||||
|
||||
Visual explain
**External links are only visible to Support Staff****External links are only visible to Support Staff** |
#18
|
||||
|
||||
@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 |
#19
|
||||
|
||||
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.
|
#20
|
||||
|
||||
@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 |
#21
|
||||
|
||||
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. |
#22
|
|||
|
|||
@tunayx: You only need to increase sub-folder threshold in advanced settings and leave other 2 settings at default.
|
#23
|
||||
|
||||
@mgpai Thank you, could you tell me where can I find the script.
Last edited by tunayx; 11.09.2021 at 20:31. |
#24
|
|||
|
|||
@tunayx: A script is not required if you use the settings in my previous post.
|
#25
|
||||
|
||||
Quote:
Also I want this only for audio files not for other file types. |
#26
|
|||
|
|||
Quote:
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. |
#27
|
||||
|
||||
I see, is it possible to create a button which can set 0/1 sub-folder threshold.
|
#28
|
|||
|
|||
Quote:
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); } |
#29
|
||||
|
||||
@mgpai The script doesn't change that value. Also setting subfolder threshold still creates folders for one file packages.
|
#30
|
||||
|
||||
@mgpai The script doesn't change that value. Also setting subfolder threshold still creates folders for one file packages.
|
#31
|
||||
|
||||
Sorry duplicate post
|
#32
|
|||
|
|||
Quote:
Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader |
#33
|
||||
|
||||
@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. |
#34
|
|||
|
|||
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 07:44. |
#35
|
||||
|
||||
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 Last edited by pspzockerscene; 09.08.2022 at 17:38. Reason: Fixed typo |
|
|