I'm trying to write a program that would let me modify the tags of mp3 files, to do this I'm using Taglib with c++11. I understood how to change the tags of a file but I'm not sure how (or even if) I can rename the file when saving it.
Let's say i have the following code:
TagLib::FileRef f("Vivaldi - La Primavera.mp3");
f.tag()->setTitle("La Primavera");
f.save();
This will change the title tag of the mp3 file (not the filename) to "La Primavera" leaving everything else unchanged.
Is there a way to have the new file after the f.save()
be called only "La Primavera" using only Taglib or do i have to do something like reading the file once more and rename it?
I've read Taglib's documentation but can't seem to find anything on the matter.