From: Andrew Dolgov Date: Tue, 2 Aug 2016 13:45:06 +0000 (+0300) Subject: af_redditimgur: support .mp4 links X-Git-Tag: 16.8~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8c395462be32131fde2aa1f89c5fbc8b99c418a0;p=tt-rss.git af_redditimgur: support .mp4 links --- 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"));