From bd148eec81f91061deb5895223b3da80a62b8830 Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 13 Apr 2003 18:04:55 +0000 Subject: [PATCH] added TODO, some fixes to main.shtml --- INSTALL | 2 ++ README | 1 + TODO | 7 +++++++ main.shtml | 10 +++++----- 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 TODO diff --git a/INSTALL b/INSTALL index 95c1883..76861c2 100644 --- a/INSTALL +++ b/INSTALL @@ -5,6 +5,8 @@ INSTALL include main.shtml in your existing webpage. it needs physical contact to the mp3 data. +exchange all entries in main.shtml reading index.shtml +to the file sourcing this main.shtml file. 2) diff --git a/README b/README index 6a96d56..325a69b 100644 --- a/README +++ b/README @@ -13,6 +13,7 @@ hackbard@hackdaworld.dyndns.org requirements ------------ +- insanity to use this - SSI supporting webbrowser (actually two times: 1. mp3 server 2.playing host) - mplayer installed on playing host diff --git a/TODO b/TODO new file mode 100644 index 0000000..1f3ad7c --- /dev/null +++ b/TODO @@ -0,0 +1,7 @@ +TODO +---- + +- coding mp3read.c to read out mp3 specific info +- make it all more clean +- make it more secure +- support a local play link (for windowzers) diff --git a/main.shtml b/main.shtml index 41feac5..43c0c17 100644 --- a/main.shtml +++ b/main.shtml @@ -61,13 +61,13 @@ if [ ! -z \"$QUERY_STRING\" ]; then echo \"

results:

\"; - artist=`echo '$QUERY_STRING' | awk -F\& '{ gsub(\"artist=\",\"\"); print $1 }'`; + artist=`echo '$QUERY_STRING' | awk -F\& '{ gsub(\"artist=\",\"\"); print $1 }' | sed 's/+/_/g'`; if [ \"`echo '$QUERY_STRING' | awk -F\& '{ gsub(\"und_oder=\",\"\"); print $2 }'`\" = \"oder\" ]; then und_oder=\"-o\"; else und_oder=\"-a\"; fi; - song=`echo '$QUERY_STRING' | awk -F\& '{ gsub(\"song=\",\"\"); print $3 }'`; + song=`echo '$QUERY_STRING' | awk -F\& '{ gsub(\"song=\",\"\"); print $3 }' | sed 's/+/_/g'`; echo \"searching for: $artist $song (mode: $und_oder)

\"; if [ \"$und_oder\" != \"-a\" ]; then @@ -78,7 +78,7 @@ if [ ! -z \"$QUERY_STRING\" ]; then echo \"\"; for dir_song in $mp3_srcdir/$found_artists/*; do mp3=`basename $dir_song`; - echo \"\"; + echo \"\"; done; echo \"
$mp3play ($local_player_ip)
$mp3`du -h $mp3_srcdir/$found_artists/$mp3 | awk '{ print $1 }'`play ($local_player_ip)
\"; done; @@ -90,7 +90,7 @@ if [ ! -z \"$QUERY_STRING\" ]; then if [ ! -z \"`echo $single_song | grep $song`\" ]; then dir=`echo $single_song | awk -F/ '{ print $(NF-1) }'` s_name=`echo $single_song | awk -F/ '{ print $(NF) }'` - echo \"$s_nameplay ($local_player_ip)\"; + echo \"$s_name`du -h $mp3_srcdir/$dir/$s_name | awk '{ print $1 }'`play ($local_player_ip)\"; fi; done; echo \"\"; @@ -105,7 +105,7 @@ if [ ! -z \"$QUERY_STRING\" ]; then for dir_song in $mp3_srcdir/$search_path/*; do mp3=`basename $dir_song`; if [ ! -z \"`echo $mp3 | grep $song`\" ]; then - echo \"$mp3play ($local_player_ip)\"; + echo \"$mp3`du -h $mp3_srcdir/$search_path/$mp3 | awk '{ print $1 }'`play ($local_player_ip)\"; fi ; done; done; -- 2.20.1