From 49048482d89b5d428a309933fe27eddc23a234f2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Aug 2016 07:56:25 +0300 Subject: [PATCH] af_redditimgur: relax poster image url condition for imgur a bit --- plugins/af_redditimgur/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 0b96e431b..e6e2a1709 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -172,7 +172,7 @@ class Af_RedditImgur extends Plugin { $source_stream = str_replace(".gifv", ".mp4", $entry->getAttribute("href")); - if (strpos($source_stream, "i.imgur.com") !== FALSE) + if (strpos($source_stream, "imgur.com") !== FALSE) $poster_url = str_replace(".mp4", "h.jpg", $source_stream); $this->handle_as_video($doc, $entry, $source_stream, $poster_url, $debug); @@ -259,7 +259,7 @@ class Af_RedditImgur extends Plugin { $entry->parentNode->insertBefore($br, $entry); } else if ($aentry->tagName == "source") { - if (strpos($url, "i.imgur.com") !== FALSE) + if (strpos($url, "imgur.com") !== FALSE) $poster_url = str_replace(".mp4", "h.jpg", $url); else $poster_url = "";