diff options
author | friendica <info@friendica.com> | 2013-06-03 16:53:53 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-03 16:53:53 -0700 |
commit | 1f94429b2cbfd5f86074c671f5293d09bddb7eaa (patch) | |
tree | 4e6290c0df57d12583d92901d74d504f369a42e1 /include/oembed.php | |
parent | 25a55219ec5a956ed70d4938c1834401a666d886 (diff) | |
download | volse-hubzilla-1f94429b2cbfd5f86074c671f5293d09bddb7eaa.tar.gz volse-hubzilla-1f94429b2cbfd5f86074c671f5293d09bddb7eaa.tar.bz2 volse-hubzilla-1f94429b2cbfd5f86074c671f5293d09bddb7eaa.zip |
move oohembed service to addon
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-x | include/oembed.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/oembed.php b/include/oembed.php index 7f8e4ca7d..04a40f6ee 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -51,12 +51,17 @@ function oembed_fetch_url($embedurl){ } } - if ($txt==false || $txt==""){ + if ($txt==false || $txt=="") { + $x = array('url' => $embedurl,'videowidth' => $a->videowidth); + call_hooks('oembed_probe',$x); + if(array_key_exists('embed',$x)) + $txt = $x['embed']; + // try oohembed service - $ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl).'&maxwidth=' . $a->videowidth; - $result = z_fetch_url($ourl); - if($result['success']) - $txt = $result['body']; +// $ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl).'&maxwidth=' . $a->videowidth; +// $result = z_fetch_url($ourl); +// if($result['success']) +// $txt = $result['body']; } $txt=trim($txt); |