JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 03.11.2022, 06:43
sterno sterno is offline
Modem User
 
Join Date: Nov 2022
Posts: 2
Default Renaming files with the numbered part of url ?

Hi everyone,

I have a text file containing download links collected from a site.
The download links result in the download of files with filenames.

original download link in my text file

exemple.com/355385/
exemple.com/355648/
exemple.com/360462/
exemple.com/361592/

original filename saved to disk using original download link

original_filename1.mp4
original_filename2.mp4
original_filename3.mp4
original_filename4.mp4

Is there a way when importing internet links into jdownloader (using Packagizer rule) to automatically append the numbered part of url to the original filename ?

For exemple:
desired filename saved to disk using Packagizer rule

355385_original_filename1.mp4
355648_original_filename2.mp4
360462_original_filename2.mp4
361592_original_filename3.mp4

I think that i have to use REGEX but i don't know what to set.

Thank advance

Last edited by sterno; 03.11.2022 at 07:01.
Reply With Quote
  #2  
Old 03.11.2022, 12:10
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Quote:
Originally Posted by sterno View Post
Is there a way when importing internet links into jdownloader (using Packagizer rule) to automatically append the numbered part of url to the original filename ?
Yes.
Packagizer main help article:
https://support.jdownloader.org/Know...the-packagizer

Quote:
Originally Posted by sterno View Post
I think that i have to use REGEX but i don't know what to set.
You most likely won't even need to use RegEx. You can work with wildcards.
We got an example which puts a part of the URL into the filename though in that example, RegEx is used:
https://support.jdownloader.org/Know...in-to-filename

If you fail to create the rule yourself please provide real life example URLs so we can actually help you.

While we're here and RegEx can be quite useful: I can recommend the following webtool for practising RegEx: regex101.com
__________________
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; 03.11.2022 at 12:14.
Reply With Quote
  #3  
Old 07.11.2022, 21:51
sterno sterno is offline
Modem User
 
Join Date: Nov 2022
Posts: 2
Default It works.

Quote:
Originally Posted by pspzockerscene View Post
You most likely won't even need to use RegEx. You can work with wildcards.
We got an example which puts a part of the URL into the filename though in that example, RegEx is used:
**External links are only visible to Support Staff**...

If you fail to create the rule yourself please provide real life example URLs so we can actually help you.

While we're here and RegEx can be quite useful: I can recommend the following webtool for practising RegEx: regex101.com

Thank you pspzockerscene.
It works as i use REGEX.

How do i set SOLVED status for the topic ? ?
Reply With Quote
  #4  
Old 08.11.2022, 10:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Quote:
Originally Posted by sterno View Post
How do i set SOLVED status for the topic ? ?
You can't, only mods can.
Done.

Thanks for your feedback!
__________________
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 00:49.
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.