From: <sam...@us...> - 2010-11-18 21:09:53
|
Revision: 30779 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=30779&view=rev Author: sampaioprimo Date: 2010-11-18 21:09:47 +0000 (Thu, 18 Nov 2010) Log Message: ----------- [FIX] flash wikiplugin: use blip.tv embed URL since it is not possible to extract it from the video URL Modified Paths: -------------- trunk/lib/wiki-plugins/wikiplugin_flash.php Modified: trunk/lib/wiki-plugins/wikiplugin_flash.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_flash.php 2010-11-18 21:09:33 UTC (rev 30778) +++ trunk/lib/wiki-plugins/wikiplugin_flash.php 2010-11-18 21:09:47 UTC (rev 30779) @@ -56,7 +56,7 @@ 'bliptv' => array( 'required' => true, 'name' => tra('Blip.tv URL'), - 'description' => tra('Entire URL to the Blip.tv video. Example: http://blip.tv/file/2568201/'), + 'description' => tra('Blip.tv embed URL. Example: http://blip.tv/play/AYGd_GAC'), 'parent' => array('name' => 'type', 'value' => 'bliptv'), ), 'width' => array( @@ -105,8 +105,9 @@ } // Handle Blip.tv video - if (isset($params['bliptv']) && preg_match('|http(s)?://(www\.)?blip\.tv/file/(\d+)/?|', $params['bliptv'], $matches)) { - $params['movie'] = 'http://blip.tv/scripts/flash/showplayer.swf?file=http://blip.tv/rss/flash/' . $matches[3]; + // We need the embed URL because there is tno relation between the video URL and the embed URL + if (isset($params['bliptv']) && preg_match('|http://blip.tv/play/\w+|', $params['bliptv'], $matches)) { + $params['movie'] = $params['bliptv']; } if ((isset($params['youtube']) || isset($params['vimeo']) || isset($params['bliptv'])) && !isset($params['movie'])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |