|
@@ -5,9 +5,9 @@ mpc="/usr/bin/mpc -h $mpd_host"
|
|
function mpd_play_folder {
|
|
function mpd_play_folder {
|
|
tag = $1
|
|
tag = $1
|
|
mkdir -p /music/$tag
|
|
mkdir -p /music/$tag
|
|
- # Update the directory timestamp to indicate what was the last tag found
|
|
|
|
|
|
+ # Update the directory timestamp to indicate the last tag seen
|
|
# Touch the file alone will not update the directory timestamp,
|
|
# Touch the file alone will not update the directory timestamp,
|
|
- # so we'll need delete and recreate the file
|
|
|
|
|
|
+ # so we'll need delete and re-create the file
|
|
rm /music/$tag/.lastplay
|
|
rm /music/$tag/.lastplay
|
|
touch /music/$tag/.lastplay
|
|
touch /music/$tag/.lastplay
|
|
$mpc stop
|
|
$mpc stop
|