From 8c395462be32131fde2aa1f89c5fbc8b99c418a0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Aug 2016 16:45:06 +0300 Subject: [PATCH] af_redditimgur: support .mp4 links --- plugins/af_redditimgur/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index e19220ba..02c499c6 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -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")); -- 2.39.5