]> git.wh0rd.org Git - tt-rss.git/commitdiff
af_redditimgur: support .mp4 links
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 2 Aug 2016 13:45:06 +0000 (16:45 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 2 Aug 2016 13:45:06 +0000 (16:45 +0300)
plugins/af_redditimgur/init.php

index e19220bad4c7190aa5808fc7088787afb8fa1727..02c499c6f370818207e51ce39381f366ecbd0e34 100755 (executable)
@@ -167,7 +167,7 @@ class Af_RedditImgur extends Plugin {
                                                str_replace(".gif", ".gifv", $entry->getAttribute("href")));
                                }
 
-                               if (!$found && preg_match("/\.(gifv)$/i", $entry->getAttribute("href"))) {
+                               if (!$found && preg_match("/\.(gifv|mp4)$/i", $entry->getAttribute("href"))) {
                                        _debug("Handling as imgur gifv", $debug);
 
                                        $source_stream = str_replace(".gifv", ".mp4", $entry->getAttribute("href"));