I'm using this module, called MPTag, in Powershell: http://powershell.com/cs/media/p/9129.aspx
It's used for editing an audio track's metadata. It works great, but I need to add leading 0's to track numbers and it's not accepting the leading zero. It just saves the integer without the leading zero.
What I'm currently using is:
$songmeta = get-mediainfo $song
$song.track = 01
$song.save()
I've also tried adding .tostring
, but it still comes out without the zero. Anyone have any ideas how I can do this? I'm very new to scripting, so I can't really understand the taglib source archive that's linked to on the download page. Is there any way I can get these leading zeros in? If not, does anyone know any other metadata editing method that would work? Thanks for any help.
EDIT: work-around solution I've found is to use FFMPEG's metadata editor. It allows you to write the leading zero. More info on this wiki page.