View Single Post
  #1454  
Old 11.07.2020, 16:48
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by heyfernand View Post
... use ... MKVToolNix to REMUX .mp4 files to .mkv ... after the download is successful ... if it's .mp4 extension ... whilst properly keeping the original name of the file ...
Code:
// Remux 'mp4' to 'mkv'
// Trigger: A Download Stopped

if (link.finished) {
    var file = link.downloadPath,
        type = getPath(file).extension,
        out = file.replace(type, "mkv"),
        mkvmerge = "c:\\mkvtoolnix\\mkvmerge.exe";

    if (type == "mp4") {
        callSync(mkvmerge, "-o", out, file);
    }
}
Reply With Quote