#1
|
|||
|
|||
![]()
I have a .bat that deletes the MKV's title, not the filename. I'd like Jdownloader runs it when any extraction ends.
Or, is there another way to do this? |
#2
|
||||
|
||||
![]()
You can use the eventscripter and then execute script after extraction
See here https://board.jdownloader.org/showthread.php?t=70525 Contact mgpai for help, he is our eventscripter master
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
![]()
I had already tried, but I don't know how to write it.
I'm contacting to mgpai. |
#4
|
|||
|
|||
![]()
@k87:
|
#5
|
|||
|
|||
![]()
Thanks. But I've realized it didn't work. My .bat file have to be in the same extraction folder.
Is there any possibility to use the mkvpropedit directly with jdownloader each time when something is downloaded or extracted instead of my .bat file? My batch code is this: Code:
dir/b/s *.mkv >list.txt for /F "delims=;" %%F in (list.txt) do "C:\Program Files\MKVToolNix\mkvpropedit" "%%F" --edit info --set "title=%%~nF" del list.txt Last edited by k87; 27.01.2018 at 15:35. |
#6
|
|||
|
|||
![]()
I'm pretty sure JD wont add the capability to add a program to do what your asking for but, I may be wrong also.
I would probably go to the User forums or to the Documentation mkvtoolnix.download/docs.html or User forums mkvtoolnix.download/community.html and ask there if there is a hidden Watch type folder maybe for the app(s) so that when something is finished via a JD finish the watch type folder action from your .bat script could then be run automatically so to speak .... one would also probably have the watch folder keep track of folders and files within so as not to keep reprocessing files already done .... it can get tricky and one can run out of disk space rapidly if things are not done right of course. Good Luck
__________________
OS X !0.6.8 Mac Pro Intel (Workhorse) OS X 10.13.6 MBP Intel 17" (Secondary) OS X MBP Intel 15" Dual boot 10.6.8 and 10.13.6 (as needed) |
#7
|
||||
|
||||
![]()
@k87: you can modify your batch file to change directory first and then provide the extraction directoy as parameter
Code:
callSync("cmd","/c","c:/myFolder/myBatch.bat",archive.getExtractToFolder());
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
![]() Quote:
Code:
var sourceFile = link.getDownloadPath(); // Downloaded file var mkvpropedit = "C:/Program Files/MKVToolNix/mkvpropedit.exe"; // Path to mkvpropedit callSync(mkvpropedit ,sourceFile,"--set", "\"title=\"");// Remove title |
![]() |
Thread Tools | |
Display Modes | |
|
|