JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 25.02.2021, 21:24
userohio userohio is offline
Baby Loader
 
Join Date: Feb 2021
Posts: 7
Default Placing files in folders named based on URL

I am trying to have the downloaded files be placed in a folder named from the URL. As an example, my goal is to have a folder named Fred%20Allen%20-%20Texaco%20Star%20Theater (with or without %, I am ok with either) for the following downloaded file.

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

I could not accomplish this using the dynamic variable <jd:source:(number)pattern>. I tried <jd:source:1> and other numbers under packagizer as a predefined folder location. Any help is much appreciated.
Reply With Quote
  #2  
Old 25.02.2021, 21:35
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Why don't you just use the "subfolder by packagename" functionality?
If you add this URL, you already get a package in JD with the name of that .mp3 file:

See here:
https://support.jdownloader.org/Know...ackage-feature

-psp-
__________________
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?
Reply With Quote
  #3  
Old 25.02.2021, 22:27
userohio userohio is offline
Baby Loader
 
Join Date: Feb 2021
Posts: 7
Default

I'll give a pictorial example. I expanded 3 files in the picture. Each file is in an individual package. Subfolder by packagename creates one folder per file. I'm trying to place multiple files in a subfolder whose name would come from the URL. Is it possible?
Attached Thumbnails
Picture1.jpg  
Reply With Quote
  #4  
Old 26.02.2021, 10:52
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by userohio View Post
... my goal is to have a folder named Fred%20Allen%20-%20Texaco%20Star%20Theater ...
Packagizer Rule:
Code:
Downloadurl -> contains -> /OTRRLib/Library*Files/*Series/*/
then set -> Package Name -> <jd:hoster:3>
Reply With Quote
  #5  
Old 26.02.2021, 12:05
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Mgpais rule will work if you want to place all files in a folder based on a part of the URL - in this case in:
Code:
Fred%20Allen%20-%20Texaco%20Star%20Theater
-psp-
__________________
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?
Reply With Quote
  #6  
Old 27.02.2021, 18:57
userohio userohio is offline
Baby Loader
 
Join Date: Feb 2021
Posts: 7
Default

Works beautifully. Thank you. Is there documentation on these features? It could reduce you guys' load.
Reply With Quote
  #7  
Old 01.03.2021, 16:43
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Do you mean on EventScripter methods or JD features in general?

-psp-
__________________
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?
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 10:38.
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.