Saturday, December 31, 2011

Ogg Vorbis on HP Touchpad

I was gifted one of those going-out-of-production HP Touchpad's. It's no iPad, but webos is actually pretty nice! I like many things about it, one of which is that it will play my ogg vorbis music collection.

But when I copied the music over... a bunch of albums showed up grouped together in the unknown albums bin. After some Google searching, I discovered this is a bug. While you can try and apply that patch, I found it easier to just fix my music collection. cd to your music directory and run this (I love bash):

find . -name '*.ogg' | { while read fn; do echo $fn; vorbiscomment -l "$fn" | awk -F = '{ print sprintf("%s=%s",toupper($1),$2); }' | vorbiscomment -w "$fn"; done; }