#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
Quote:
Packagizer main help article: https://support.jdownloader.org/Know...the-packagizer 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 Last edited by pspzockerscene; 03.11.2022 at 12:14. |
#3
|
|||
|
|||
It works.
Quote:
Thank you pspzockerscene. It works as i use REGEX. How do i set SOLVED status for the topic ? ? |
#4
|
||||
|
||||
You can't, only mods can.
Done. Thanks for your feedback!
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
|
|