]> git.wh0rd.org - tt-rss.git/commitdiff
af_redditimgur: fix for gfycat
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 10 Aug 2015 19:29:09 +0000 (22:29 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 10 Aug 2015 19:29:09 +0000 (22:29 +0300)
plugins/af_redditimgur/init.php

index f3d8b28b4b041d3596c83b91b586e46a475d9bae..e7658120d4f04675a52358b04aae138f3d63e2ad 100644 (file)
@@ -95,7 +95,7 @@ class Af_RedditImgur extends Plugin {
                                                if ($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);
 
                                                        if ($source_meta) {