From 789c5d12f23d3158c65c8654c9dcf7bd0a67b9a4 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 31 Dec 2011 21:04:45 +0100 Subject: Readded giss.tv support. --- lib/gisstv.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/gisstv.php (limited to 'lib/gisstv.php') diff --git a/lib/gisstv.php b/lib/gisstv.php new file mode 100644 index 000000000..24e11340a --- /dev/null +++ b/lib/gisstv.php @@ -0,0 +1,41 @@ + 'gisstv', + 'video_id' => $video_id, + ); +} + +function videolist_get_data_gisstv($parsed){ + $video_id = $parsed['video_id']; + + $buffer = file_get_contents('http://giss.tv/dmmdb//rss.php'); + $xml = new SimpleXMLElement($buffer); + + $data = array(); + foreach($xml->xpath('/rss/channel/item') as $item){ + if(sanitize_string($item->link) == 'http://giss.tv/dmmdb//contents/'.$video_id) { + $data['title'] = sanitize_string($item->title); + $data['description'] = strip_tags($item->description); + $data['thumbnail'] = sanitize_string($item->thumbnail); + break; + } + } + return $data; +} -- cgit v1.2.3