@@ -38,7 +38,7 @@ while [ $# -gt 0 ]; do
3838
3939 if [ -w " $LIBRARY " -a $hostname = $MASTERHOST ]; then
4040 echo Starting generation of the non-local list
41- cat " $CACHEDLIST " | sed " s'^$LIBRARY /'http://$hostname /'" > " $LIBRARY /.master_playlist.m3u"
41+ cat " $CACHEDLIST " | sed " s'^$LIBRARY /'http://$hostname /Music/ '" > " $LIBRARY /.master_playlist.m3u"
4242 fi
4343 echo done
4444 exit
@@ -116,14 +116,14 @@ if [ ! -e $FILE ]; then
116116 if [ $hostname != $MASTERHOST ]; then
117117 cd
118118 # if wget --tries=1 --timestamping --no-host http://$MASTERHOST/.master_playlist.m3u 2>/dev/null; then
119- if wget --tries=1 --timestamping --no-host http://$MASTERHOST /.master_playlist.m3u ; then
119+ if wget --tries=1 --timestamping --no-host http://$MASTERHOST /Music/ .master_playlist.m3u ; then
120120 if [ ! -e ~ /.remote_playlist.m3u -o ~ /.master_playlist.m3u -nt ~ /.remote_playlist.m3u ]; then
121121 # We got a new remote master list, update the local copy of remote lists.
122122 # Strategy: create a copy of the local list modified to "look" like they would if
123123 # retrieved from the remote machine.
124124 # Then, cat with the remote list, sort, and use "uniq -u" to discard duplicates. Done
125125 echo new remote master or old local copy, regenerating 1>&2
126- cat " $CACHEDLIST " | sed " s'^$LIBRARY /'http://$MASTERHOST /'" > ~/.remote_playlist.m3u.temp
126+ cat " $CACHEDLIST " | sed " s'^$LIBRARY /'http://$MASTERHOST /Music '" > ~/.remote_playlist.m3u.temp
127127 cat ~ /.master_playlist.m3u ~ /.remote_playlist.m3u.temp | sort | uniq -u > ~/.remote_playlist.m3u
128128 # This file being removed is actually the LOCAL playlist, gussied up to look like
129129 # the remote playlist, so duplicate songs will be removed.
0 commit comments