Peter Stuifzand

Another music player

The day after I posted the previous post, I became aware of a serious flaw in the design of the player. It couldn’t play music from on artist or one album. I really liked this functionality, so I wrote it.

MUSICDIR=~/music
cd $MUSICDIR
find . -type f -name "*.mp3" -o -name "*.ogg" | grep "$1" > playlist
mplayer -quiet -shuffle -playlist playlist | grep Playing

Also it tried to play the cover images that are in some of the directories. This was solved by specifying the extensions of the files to play.

© 2023 Peter Stuifzand