You are here

function emvideo_bliptv_extract in Embedded Media Field 6

File

contrib/emvideo/providers/bliptv.inc, line 182
This include processes blip.tv media files for use by emfield.module.

Code

function emvideo_bliptv_extract($embed) {

  // @TODO: Until #293153 is resolved, don't allow pasting embed code from Blip.TV.
  preg_match('@blip\\.tv/play/([^"\\&\\?/]+)@i', $embed, $matches);
  if ($matches[1]) {
    return 'BLIP_TV_ERROR_EMBED';
  }
  return array(
    '@blip\\.tv/rss/flash/([^"\\&\\?/]+)@i',
    '@blip\\.tv/file/view/([^"\\&\\?/]+)@i',
    '@blip\\.tv/file/([^"\\&\\?/]+)@i',
  );
}