diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-03 09:21:29 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-03 09:21:29 +0000 |
commit | dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196 (patch) | |
tree | 1036034cfcb8653f37b2e690f8b83068f98fe509 /song.php | |
parent | a2cf31f96cd9ba28b1f5e7090208312a9e5b7ca9 (diff) | |
download | ampache-dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196.tar.gz ampache-dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196.tar.bz2 ampache-dfbe65e1bf0a4d7cff1e2d31a2ade18de6756196.zip |
whole new playlists files new coolness supported but not implmented, playback works but playlist edit functions are still untested...
Diffstat (limited to 'song.php')
-rw-r--r-- | song.php | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2005 ampache.org + Copyright (c) 2001 - 2006 ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -26,6 +26,7 @@ a bunch of id's. Special thanx goes to Mike Payson and Jon Disnard for the means to do this. + FIXME: don't get me started... :( */ require('modules/init.php'); @@ -64,9 +65,17 @@ switch ($action) { $song_ids = $genre->get_random_songs(); $_REQUEST['action'] = 'm3u'; break; + case 'playlist': + $playlist = new Playlist($_REQUEST['playlist_id']); + $song_ids = $playlist->get_songs(); + $_REQUEST['action'] = 'm3u'; + case 'playlist_random': + $playlist = new Playlist($_REQUEST['playlist_id']); + $song_ids = $playlist->get_random_songs(); + $_REQUEST['action'] = 'm3u'; + break; default: break; - } // end action switch if ($_REQUEST['album']) { |