View Single Post
  #2611  
Old 20.04.2023, 20:17
aiimaim aiimaim is offline
DSL Light User
 
Join Date: Oct 2017
Posts: 31
Smile

Hey there,

I use the following script to rename video files of a certain size to lowercase ("ON_PACKAGIZER"):

Code:
if (linkcheckDone && link.bytesTotal > 150 * 1024 * 1024 && link.bytesTotal < 2500 * 1024 * 1024) {

    var re = /(?:\.([^.]+))?$/;
    var ext = re.exec(link.name)[1].toLowerCase();
    switch (ext) {
        case "mkv":
        case "mpeg":
        case "mp4":
        case "mpg":
        case "avi":
            link.name = link.name.toLowerCase();
    }
}

I'd like to have a similar script to do the same for all video files, that are extracted from archives, but I'm not sure how to go about it
Could someone please help me out?

Thank you in advance!

Last edited by aiimaim; 21.04.2023 at 10:43.
Reply With Quote