|
|
@ -95,7 +95,7 @@ class Af_RedditImgur extends Plugin {
|
|
|
|
if ($tmpdoc) {
|
|
|
|
if ($tmpdoc) {
|
|
|
|
$tmpxpath = new DOMXPath($tmpdoc);
|
|
|
|
$tmpxpath = new DOMXPath($tmpdoc);
|
|
|
|
|
|
|
|
|
|
|
|
$source_meta = $tmpxpath->query("//meta[@property='og:video']")->item(0);
|
|
|
|
$source_meta = $tmpxpath->query("//meta[@name='twitter:player:stream' and contains(@content, '.mp4')]")->item(0);
|
|
|
|
$poster_meta = $tmpxpath->query("//meta[@property='og:image' and contains(@content,'thumbs.gfycat.com')]")->item(0);
|
|
|
|
$poster_meta = $tmpxpath->query("//meta[@property='og:image' and contains(@content,'thumbs.gfycat.com')]")->item(0);
|
|
|
|
|
|
|
|
|
|
|
|
if ($source_meta) {
|
|
|
|
if ($source_meta) {
|
|
|
|