]> hackdaworld.org Git - my-code/mp3db.git/commitdiff
added TAG presentation
authorhackbard <hackbard>
Thu, 17 Apr 2003 15:43:26 +0000 (15:43 +0000)
committerhackbard <hackbard>
Thu, 17 Apr 2003 15:43:26 +0000 (15:43 +0000)
main.shtml

index 43c0c170deb8d2051242994974906716ed646279..fd7c5dd49d1a7737eeb2c84b23db8b8e315f39a7 100644 (file)
@@ -78,7 +78,7 @@ if [ ! -z \"$QUERY_STRING\" ]; then
     echo \"<table border=1 cellpadding=5 cellspacing=0>\";
     for dir_song in $mp3_srcdir/$found_artists/*; do
      mp3=`basename $dir_song`;
-     echo \"<tr><td><a href=\"$mp3_http_loc/$found_artists/$mp3\">$mp3</a></td><td>`du -h $mp3_srcdir/$found_artists/$mp3 | awk '{ print $1 }'`</td><td><a href=\"http://${local_player_ip}${playerfile_dir}/playsong.shtml\?url=http://${mp3_server_name}${mp3_http_loc}/$found_artists/$mp3\&user=$my_user_name\&passwd=$user_passwd\">play ($local_player_ip)</a></td></tr>\";
+     echo \"<tr><td><a href=\"$mp3_http_loc/$found_artists/$mp3\">$mp3</a></td><td>`du -h $mp3_srcdir/$found_artists/$mp3 | awk '{ print $1 }'`</td><td><a href=\"http://${local_player_ip}${playerfile_dir}/playsong.shtml\?url=http://${mp3_server_name}${mp3_http_loc}/$found_artists/$mp3\&user=$my_user_name\&passwd=$user_passwd\">play ($local_player_ip)</a></td><td>`readtag.sh $mp3_srcdir/$found_artists/$mp3`</td></tr>\";
     done;
    echo \"</table>\";
    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 \"<tr><td><a href=\"$mp3_http_loc/$dir/$s_name\">$s_name</a></td><td>`du -h $mp3_srcdir/$dir/$s_name | awk '{ print $1 }'`</td><td><a href=\"http://${local_player_ip}${playerfile_dir}/playsong.shtml\?url=http://${mp3_server_name}${mp3_http_loc}/$dir/$s_name\&user=$my_user_name\&passwd=$user_passwd\">play ($local_player_ip)</a></td></tr>\";
+     echo \"<tr><td><a href=\"$mp3_http_loc/$dir/$s_name\">$s_name</a></td><td>`du -h $mp3_srcdir/$dir/$s_name | awk '{ print $1 }'`</td><td><a href=\"http://${local_player_ip}${playerfile_dir}/playsong.shtml\?url=http://${mp3_server_name}${mp3_http_loc}/$dir/$s_name\&user=$my_user_name\&passwd=$user_passwd\">play ($local_player_ip)</a></td><td>`readtag.sh $mp3_srcdir/$dir/$s_name`</tr>\";
     fi;
    done;
    echo \"</table>\";
@@ -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 \"<tr><td><a href=\"$mp3_http_loc/$search_path/$mp3\">$mp3</a></td><td>`du -h $mp3_srcdir/$search_path/$mp3 | awk '{ print $1 }'`</td><td><a href=\"http://${local_player_ip}${playerfile_dir}/playsong.shtml\?url=http://${mp3_server_name}${mp3_http_loc}/$search_path/$mp3\&user=$my_user_name\&passwd=$user_passwd\">play ($local_player_ip)</a></td></tr>\";
+     echo \"<tr><td><a href=\"$mp3_http_loc/$search_path/$mp3\">$mp3</a></td><td>`du -h $mp3_srcdir/$search_path/$mp3 | awk '{ print $1 }'`</td><td><a href=\"http://${local_player_ip}${playerfile_dir}/playsong.shtml\?url=http://${mp3_server_name}${mp3_http_loc}/$search_path/$mp3\&user=$my_user_name\&passwd=$user_passwd\">play ($local_player_ip)</a></td><td>`readtag.sh $mp3_srcdir/$search_path/$mp3`</tr>\";
     fi ;
    done;
   done;