One of my main familial duties is as CD-Ripping monkey. Once we get a CD I need to convert it into a format friendly for the various streamers, phones, players, alarm-clocks and secret digital diaries (yes, really). This usually just involves ripping an album to Flac and MP3 and uploading it to the file-server.
Some audio-books and multi-CD albums are more difficult though; the more CDs there are the more chance that iTunes or the FreeDB databases have mismatches of metadata between the discs (maybe CD #1s album title is “Status Quo Greatest Hits CD1′ and CD#9s album title is ‘Status Quo – Greatest Hits (CD 9)’). Clearly mismatched metadata is a crime against humanity and I can’t leave it uncorrected.
You can only imagine how diabolical the Harry Potter Unabridged audiobooks are; each has 25+ CDs with with 50-70 files per disc. When we get a new-one they often sit on my desk for days, taunting me while I choke back a sob and try not to remember the manual corrections required the last time I converted one.
This time my PowerShell-fu is strong and it comes to the rescue with some automatic tagging. The details are below.