dennzlak / rename-y2mate-files

removes ' y2mate - ' from your filename.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rename-y2mate-files

removes ' y2mate - ' from your file.

Tutorial

so this might look confusing, i'm gonna explain :)

const testFolder = 'YOUR MUSIC FOLDER GOES HERE';

  • replace 'YOUR MUSIC FOLDER GOES HERE' with your music folder (eg. 'C:/Users/[USER]/Music' (with quotation marks)
  • make sure you flip the backslashes to forwardslashes "C:/Users/[USER]/Music"

you can change the 'y2mate.is# to whatever website you were on fs.readdir(testFolder, (err, files) => { files.forEach(file => { if (file.startsWith('y2mate.is - ') { var newname = file.replace('y2mate.is - ' , '') var fileLocation = testFolder +'/'+file var newestName = testFolder + '/' + newname fs.renameSync(fileLocation, newestName) } console.log(file); }); });

now, open command prompt or node.js command prompt and enter 'node app.js'

About

removes ' y2mate - ' from your filename.


Languages

Language:JavaScript 100.0%