Wikia

Music Player Daemon Community Wiki

Hack:update and add

525pages on
this wiki
Talk0

This simple shell script updates the database and adds all songs, when finished.

#!/bin/sh
echo 'updating...'
mpc update > /dev/null
while [ -n "$(mpc | grep Updating)" ] ; do sleep 5 ; done
echo 'adding...'
mpc clear
mpc add / > /dev/null
mpc play

Around Wikia's network

Random Wiki