Ignore:
Timestamp:
Aug 4, 2012, 4:15:54 PM (12 years ago)
Author:
mistic100
Message:
  • simplify add page
  • simplify migration task
  • add option to add film effect on element edition page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/include/functions.inc.php

    r17311 r17383  
    4040      $json = json_decode($json, true);
    4141      $video = array_merge($video, array(
     42        'url' => 'http://youtube.com/watch?v='.$video['id'],
    4243        'title' => $json['entry']['title']['$t'],
    4344        'description' => $json['entry']['media$group']['media$description']['$t'],
     
    6263      $json = json_decode($json, true);
    6364      $video = array_merge($video, array(
     65        'url' => 'http://vimeo.com/'.$video['id'],
    6466        'title' => $json[0]['title'],
    6567        'description' => $json[0]['description'],
     
    8890      $video = array_merge($video, array(
    8991        'id' => $json['id'],
     92        'url' => 'http://dailymotion.com/video/'.$json['id'],
    9093        'title' => $json['title'],
    9194        'description' => $json['description'],
     
    108111      $video['id'] = $matches[1];
    109112     
     113      $video['url'] = $source_url;
     114     
    110115      preg_match('#<meta name="name" content="([^">]*)" />#', $html, $matches);
    111116      $video['title'] = $matches[1];
     
    131136      $html = download_remote_file($source_url, true);
    132137      if ($html === false or $html == 'file_error') return false;
    133            
     138     
     139      $video['url'] = 'http://wideo.fr/video/'.$video['id'].'.html';
     140     
    134141      preg_match('#<meta property="og:title" content="([^">]*)" />#', $html, $matches);
    135142      $video['title'] = $matches[1];
     
    166173      $html = download_remote_file($source_url, true);
    167174      if ($html === false or $html == 'file_error') return false;
    168            
     175     
     176      $video['url'] = 'http://www.videobb.com/video/'.$video['id'];
     177     
    169178      preg_match('#<meta content="videobb - ([^">]*)"  name="title" property="" />#', $html, $matches);
    170179      $video['title'] = $matches[1];
Note: See TracChangeset for help on using the changeset viewer.