af_redditimgur: support .mp4 links

This commit is contained in:
Andrew Dolgov 2016-08-02 16:45:06 +03:00
parent e487e92d70
commit 8c395462be
1 changed files with 1 additions and 1 deletions

View File

@ -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"));