summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/stream.class.php21
-rw-r--r--lib/class/update.class.php11
2 files changed, 23 insertions, 9 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 8b298917..0384a991 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -554,16 +554,19 @@ class Stream {
*/
private function create_download() {
- // Build up our object
- $song_id = $this->media['0'];
- $url = Song::play_url($song_id);
-
- // Append the fact we are downloading
- $url .= '&action=download';
+ // There should only be one here...
+ foreach ($this->media as $element) {
+ $type = array_shift($element);
+ $media = new $type(array_shift($element));
+ $url = call_user_func(array($type,'play_url'),$media->id);
+
+ // Append the fact we are downloading
+ $url .= '&action=download';
- // Header redirect baby!
- header("Location: $url");
- exit;
+ // Header redirect baby!
+ header("Location: $url");
+ exit;
+ }
} //create_download
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 19795510..57283f56 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -1756,6 +1756,17 @@ class Update {
} // update_350008
+ /**
+ * update_360001
+ * This adds the mbid id's to the different tables as well as some additional cleanup
+ */
+ public static function update_360001() {
+
+
+
+
+ } // update_360001
+
} // end update class
?>