Yeap, its pretty easy to automate. Take a look at …
Windows:
Linux:
I think FileBot can do it also but I’ve never used it myself as I have my own scripts to name stuff.