From: Andrew Dolgov Date: Tue, 2 Aug 2016 04:56:25 +0000 (+0300) Subject: af_redditimgur: relax poster image url condition for imgur a bit X-Git-Tag: 16.8~7 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=49048482d89b5d428a309933fe27eddc23a234f2;p=tt-rss.git af_redditimgur: relax poster image url condition for imgur a bit --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 0b96e431..e6e2a170 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 = "";