From 84de3a9ab57277bbaedb30c5e24070f8a5ad4431 Mon Sep 17 00:00:00 2001 From: Sem Date: Sun, 6 Nov 2011 22:42:30 +0100 Subject: Videolist objects all in one view. --- lib/videolist.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/videolist.php b/lib/videolist.php index a71315027..18745dfd1 100644 --- a/lib/videolist.php +++ b/lib/videolist.php @@ -89,6 +89,7 @@ function videolist_get_data_youtube($videoid){ 'title' => sanitize_string($xml->title), 'description' => sanitize_string($xml->content), 'icon' => "http://img.youtube.com/vi/$videoid/default.jpg", + 'videotype' => 'youtube', ); } @@ -103,6 +104,7 @@ function videolist_get_data_vimeo($videoid){ 'title' => sanitize_string($video->title), 'description' => sanitize_string($video->description), 'icon' => sanitize_string($video->thumbnail_medium), + 'videotype' => 'vimeo', ); } @@ -119,5 +121,6 @@ function videolist_get_data_metacafe($videoid){ //FIXME 'title' => $channel->title, 'description' => $channel->description, 'icon' => $matches[1], + 'videotype' => 'metacafe', ); } -- cgit v1.2.3