summaryrefslogtreecommitdiffstats
path: root/lib/class/api.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-09-20 11:17:35 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-09-20 11:22:48 -0400
commitafd69ce3340864075982d0d9b8acb442b0f6ffe1 (patch)
tree17e9ec16e347912f2e2ccc1209f40430fde08a99 /lib/class/api.class.php
parentbba378c39b0f301a5c85b0baa115a541bb0274c3 (diff)
downloadampache-afd69ce3340864075982d0d9b8acb442b0f6ffe1.tar.gz
ampache-afd69ce3340864075982d0d9b8acb442b0f6ffe1.tar.bz2
ampache-afd69ce3340864075982d0d9b8acb442b0f6ffe1.zip
Cosmetics: api::url_to_song
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r--lib/class/api.class.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php
index ff7e2cb3..b204ad7b 100644
--- a/lib/class/api.class.php
+++ b/lib/class/api.class.php
@@ -514,10 +514,8 @@ class Api {
*/
public static function url_to_song($input) {
- // Don't scrub in we need to give her raw and juicy to the function
- $url = $input['url'];
-
- $song_id = Song::parse_song_url($url);
+ // Don't scrub, the function needs her raw and juicy
+ $song_id = Song::parse_song_url($input['url']);
ob_end_clean();
echo xmlData::songs(array($song_id));