Changeset 17383 for extensions/gvideo/include/functions.inc.php
- Timestamp:
- Aug 4, 2012, 4:15:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/include/functions.inc.php
r17311 r17383 40 40 $json = json_decode($json, true); 41 41 $video = array_merge($video, array( 42 'url' => 'http://youtube.com/watch?v='.$video['id'], 42 43 'title' => $json['entry']['title']['$t'], 43 44 'description' => $json['entry']['media$group']['media$description']['$t'], … … 62 63 $json = json_decode($json, true); 63 64 $video = array_merge($video, array( 65 'url' => 'http://vimeo.com/'.$video['id'], 64 66 'title' => $json[0]['title'], 65 67 'description' => $json[0]['description'], … … 88 90 $video = array_merge($video, array( 89 91 'id' => $json['id'], 92 'url' => 'http://dailymotion.com/video/'.$json['id'], 90 93 'title' => $json['title'], 91 94 'description' => $json['description'], … … 108 111 $video['id'] = $matches[1]; 109 112 113 $video['url'] = $source_url; 114 110 115 preg_match('#<meta name="name" content="([^">]*)" />#', $html, $matches); 111 116 $video['title'] = $matches[1]; … … 131 136 $html = download_remote_file($source_url, true); 132 137 if ($html === false or $html == 'file_error') return false; 133 138 139 $video['url'] = 'http://wideo.fr/video/'.$video['id'].'.html'; 140 134 141 preg_match('#<meta property="og:title" content="([^">]*)" />#', $html, $matches); 135 142 $video['title'] = $matches[1]; … … 166 173 $html = download_remote_file($source_url, true); 167 174 if ($html === false or $html == 'file_error') return false; 168 175 176 $video['url'] = 'http://www.videobb.com/video/'.$video['id']; 177 169 178 preg_match('#<meta content="videobb - ([^">]*)" name="title" property="" />#', $html, $matches); 170 179 $video['title'] = $matches[1];
Note: See TracChangeset
for help on using the changeset viewer.