Index: openacs-4/contrib/obsolete-packages/mp3-jukebox/www/mp3s/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/obsolete-packages/mp3-jukebox/www/mp3s/index.vuh,v diff -u -r1.1 -r1.1.4.1 --- openacs-4/contrib/obsolete-packages/mp3-jukebox/www/mp3s/index.vuh 17 Oct 2001 19:44:08 -0000 1.1 +++ openacs-4/contrib/obsolete-packages/mp3-jukebox/www/mp3s/index.vuh 3 Sep 2003 15:04:16 -0000 1.1.4.1 @@ -1,14 +1,16 @@ -# This file will process all mp3 requests +ad_page_contract { -set path_info [ad_conn path_info] + Lists properties of one playlist including related mp3s -# assume we get mp3id/mp3title.mp3 as the path + @author wirth@ybos.net + @creation-date 2000-03-02 -set mp3_id [lindex [split $path_info /] 0] +} { + file_path:notnull +} +# This file will process all mp3 requests -set file_path "[ad_parameter MP3FileLocation]/[db_string get_file_location " - select file_path from mp3_mp3s where mp3_id = :mp3_id -"]" +set path_info [ad_conn path_info] - ns_returnfile 200 audio/mpeg $file_path +#ns_returnfile 200 audio/mpeg /med \ No newline at end of file