diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-25 14:57:43 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-25 14:57:43 +0100 |
commit | f9d9af88675e9b245716e97b762444adb5178072 (patch) | |
tree | f920ecb6839a35d4e63df74119b8ce32290c50ef /includes | |
parent | eef4ca4b8dff922c1c675fd95d6ccccc6cc5c55c (diff) | |
download | istreamdev-f9d9af88675e9b245716e97b762444adb5178072.tar.gz istreamdev-f9d9af88675e9b245716e97b762444adb5178072.tar.bz2 |
Fixed playlist generation
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/inc_audio.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php index 414b885..2828ca4 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -68,15 +68,18 @@ if ($medianame_array[0]) if (mediagettype($mediapath .$subdir .$medianame_array[$cnt]) == 2) { print " <li>\r\n"; + + unset($track); for ($cnt2=$cnt; $cnt2<$count; $cnt2++) { - $track[$cnt2-$cnt] = $httppath."playlist/".$medianame2; + if (mediagettype($mediapath .$subdir .$medianame_array[$cnt2]) == 2) + $track[$cnt2-$cnt] = $httppath ."playlist/" .addslashes($medianame_array[$cnt2]); } $jsarray = php2js($track); - print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer('{$mediapath}{$subdir}','{$medianame2}',myarray);document.player.Play();\">\r\n"; + print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer('{$mediapath2}{$subdir2}','{$medianame2}',myarray);document.player.Play();\">\r\n"; print " <span class=\"number\">$idx</span><span class=\"stop\"></span><span class=\"name\">{$medianame_array[$cnt]}</span>\r\n"; print " </a>\r\n"; |