#1
|
|||
|
|||
change dlc filename and export embedded change
Hi,
Firstly, awesome piece of software keep up the great work. secondly, - if I have a DLC file, which loads and works. - I want to change the file name of the DLC (in the interface I can rename it, which works) - how can I change the DLC to keep that name change when I export it as "new" dlc file? Last edited by snuffleupagus; 22.11.2021 at 19:21. |
#2
|
||||
|
||||
Hi,
that is not possible. I'm not sure but maybe this can be acomplished using an EventScripter script. Keep in mind that when importing/exporting a DLC, the link to that DLC is lost so there is no reason for JD to save/re-use that first name. Also most of all times, you will have more/less links (= a different downloadlist) when exporting a DLC again so your use-case is very exotic. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
I was thinking another way. If you can't modify the dlc to append the desired text when you export it. Can you do something where you modify the dlc filename with -UNIQUEID (ex. -thisValue1) itself and have jdownloader read the name of the DLC, when it's reading the content of the DLC and take -thisValue1 and append it to the file itself?
essentially - read dlc ( ex. hello -thisvalue1.dlc) - parse the -thisValue1 (as -thisValue1) >>-thisValue1 - append it to the filename that is being downloaded. >> <dlc filename><-appended: -thisValue1>.extension ex. final file name>> hello -thisValue1.<extension> ?? thank you Last edited by snuffleupagus; 24.11.2021 at 23:05. |
#4
|
||||
|
||||
I guess only Jiaz can answer this question.
It might be possible using a Packagizer rule and if not, it might be possible using an EventScripter script. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
Thanks for the response. Greatly appreciate it. Hopefully it can be done. Since it'll help me greatly when routing files to folders with this "-tag"
|
#6
|
|||
|
|||
@pspzockerscene - thanks for the suggestion. I'm assuming @Jiaz must be super busy. Would love this capability and @jiaz input.
|
#7
|
||||
|
||||
Yap he is super busy but afaik he will go through all threads with this prefix so please wait up to 7 days longer (weekends not included).
You are free to push this thread again after that time. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#8
|
|||
|
|||
friendly nudge on assistance/resolution on this
Last edited by snuffleupagus; 04.12.2021 at 20:05. |
#9
|
|||
|
|||
Hi, any update on this request?
|
#10
|
||||
|
||||
No.
Please continue to wait until Jiaz finds time to answer this request. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#11
|
||||
|
||||
Quote:
Quote:
filename to Quote:
of course you can modify the matching pattern to just match on wanted part of filename In case you need further help, just let me know
__________________
JD-Dev & Server-Admin Last edited by pspzockerscene; 28.01.2022 at 12:53. Reason: Removed double backslash in regular expression |
#12
|
|||
|
|||
@jiaz - thank you for the response. I attempted to do as shared but not getting the desired result.
Desire is: - use a DLC file ex "welcome -test.dlc" - append the "-test" to the file downloaded file from the DLC --ex. if actual download for the file name is "Hello.mp4" then the resulting download file would be "Hello -test.mp4" I'm a bit new the customization of JD. SO any direction or help would be greatly appreciated. Here's the Packagizer entry. **External links are only visible to Support Staff****External links are only visible to Support Staff** |
#13
|
||||
|
||||
@snuffleupagus: my bad. the end must be
Quote:
Quote:
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
@Jiaz - thank you for the quick response. Any help would be greatly appreciated.
Firstly thank you for the direction it does read the filename of the file and add it to the file. just not exactly as desired or expected There are a few issues: - "welcome -test.dlc" >> file rename >> "Hello.mp4" >> "Hello.mp4-welcome -test.mp4" -- desired is "Hello -test.mp4" - issues -- "-" is appended to the front with the entire name "welcome -test" of the dlc is appended to the file when only "-test" should be -- there are 2 extension added. Latest: **External links are only visible to Support Staff****External links are only visible to Support Staff** Thank you for any help. Last edited by snuffleupagus; 17.12.2021 at 19:23. |
#15
|
|||
|
|||
So this
Code:
<jd:orgfilename>-<jd:source:1>.<jd:orgfiletype> Code:
<jd:orgfilenamewithoutext> - <jd:source:1>.<jd:orgfiletype> Code:
file:.+/([^/]+)\.dlc currently: Code:
take "welcome -test.dlc" to returns "welcome -test" Code:
"-test" |
#16
|
|||
|
|||
Code:
file:.+/.+(-.+)\.dlc |
#17
|
||||
|
||||
This should work fine
Quote:
__________________
JD-Dev & Server-Admin |
#18
|
|||
|
|||
Thank you both @mgpai @Jiaz for the response. I was wondering does JD2 use regex differently? I'm somewhat aware of regex but these pattern matching is a little different than what I'm aware of or expect.
Using regex101.com they don't seem to work but they seem to work in JD if I use Regex 101 example - Shows pattern error Code:
file:.+/.+(-.+)\.dlc Code:
file:.+/[^/]+-([^/]+)\.dlc Code:
-(.*)\.dlc Just trying to see where I can learn how to use JD2 regex more accurately? Last edited by snuffleupagus; 21.12.2021 at 21:28. |
#19
|
||||
|
||||
You need to escape the
Quote:
Quote:
__________________
JD-Dev & Server-Admin |
#20
|
||||
|
||||
Works perfectly fine here. Just tested. Can you please export your rule and attach here or create screenshot. Regex Checkbox is enabled?
__________________
JD-Dev & Server-Admin |
|
|