Skip to content

Commit 137363e

Browse files
author
John Gilmore
committed
Updated URL's
1 parent 5f8c9fc commit 137363e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

playrandom

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

static-route-on-local-wireless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ case "$reason" in
1717
set >setinfo
1818
if echo $new_ip_address | grep '^192\.168\.3\....' ; then
1919
ifconfig $interface $new_ip_address
20-
if wget -T 2 --tries=1 --timestamping --no-host http://herb/.master_playlist.m3u ; then
20+
if wget -T 2 --tries=1 --timestamping --no-host http://herb/Music/.master_playlist.m3u ; then
2121
#Find our hostname in /etc/hosts, and try to grab our ip address.
2222
hostname=`cat /etc/hostname`
2323
IP_MINE=`cat /etc/hosts | grep $hostname | sed 's/.*\(192\.168\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/'`

0 commit comments

Comments
 (0)