summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:16:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:16:13 +0000
commit27ba8110cab5b09220a110f0e2f3af026582c9fc (patch)
treed54b665062b1dab40deff47ca519eca1ee251db0 /stream.php
parent3508380e994d80c6df1a287606a969c218d81694 (diff)
downloadampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.tar.gz
ampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.tar.bz2
ampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.zip
democratic play working, if still slightly sketchy
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/stream.php b/stream.php
index 995367c1..9f2ecc37 100644
--- a/stream.php
+++ b/stream.php
@@ -159,6 +159,11 @@ switch ($_REQUEST['action']) {
$options = array('limit' => $_REQUEST['random'], 'random_type' => $_REQUEST['random_type'],'size_limit'=>$_REQUEST['size_limit']);
$song_ids = get_random_songs($options, $matchlist);
break;
+ case 'democratic':
+ $democratic = Democratic::get_current_playlist();
+ $urls[] = $democratic->get_url();
+ $song_ids = array();
+ break;
case 'download':
$song_ids[] = $_REQUEST['song_id'];
default: