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!