summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-08-02 07:56:25 +0300
committerAndrew Dolgov <[email protected]>2016-08-02 07:56:25 +0300
commit49048482d89b5d428a309933fe27eddc23a234f2 (patch)
treef224b5b9cb3e8a71a91b70063ee213d52a75f4c7 /plugins
parent43db5b99eb6ed7eb80fc2eb3667d067a19d97687 (diff)
af_redditimgur: relax poster image url condition for imgur a bit
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/af_redditimgur/init.php4
1 files 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 = "";