From e3300cc53b9d8cbe096f9847b826ed440c8f1fac Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 21 Mar 2010 13:07:00 +0000 Subject: Resolved #39 - slightly differently then provided patch - Adds attribute hack to keyd_array in xmlclass and video xspf support --- lib/class/stream.class.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/class/stream.class.php') diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 1b4a7225..97b17e1c 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -426,6 +426,13 @@ class Stream { $xml['track']['album'] = $media->f_album_full; $length = $media->time; break; + case 'video': + $xml['track']['title'] = $media->title; + $xml['track']['creator'] = $media->f_artist_full; + $xml['track']['info'] = Config::get('web_path') . '/browse.php?action=video'; + $xml['track']['image'] = Config::get('web_path') . '/image.php?id=' . $media->id . '&type=video&thumb=3&sid=' . session_id(); + $xml['track']]'meta'] = array('attribute'=>'rel="provider"','value'=>'video'); + break; } // type $xml['track']['location'] = call_user_func(array($type,'play_url'),$media->id); -- cgit