Saturday, July 2, 2011

PowerShell Script to pull Album Art for missing directories

I recently went and downloaded Album Art Downloader to get some missing album art for some of the albums I have. But I quickly noticed that it would be a manual process to find the directories that needed the art added, and I am lazy.

Luckily there is a command line interface for AAD. But that alone would not accomplish what I wanted to do. I figured now would be a good time to try my hand at a powershell script.

This script will take each artist/album and use AAD to get album art and save it as folder.jpg. The script expects the root directory to contain “artist/album” hierarchy.

You will have to change the “root” and possibly the location of the aad.exe.

PowerShell Script to pull Album Art for missing directories

I recently went and downloaded Album Art Downloader to get some missing album art for some of the albums I have. But I quickly noticed that it would be a manual process to find the directories that needed the art added, and I am lazy.

Luckily there is a command line interface for AAD. But that alone would not accomplish what I wanted to do. I figured now would be a good time to try my hand at a powershell script.

This script will take each artist/album and use AAD to get album art and save it as folder.jpg. The script expects the root directory to contain “artist/album” hierarchy.

You will have to change the “root” and possibly the location of the aad.exe.