]> git.wh0rd.org Git - tt-rss.git/commitdiff
af_redditimgur: relax poster image url condition for imgur a bit
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 2 Aug 2016 04:56:25 +0000 (07:56 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 2 Aug 2016 04:56:25 +0000 (07:56 +0300)
plugins/af_redditimgur/init.php

index 0b96e431b9771bb52c8f224c716c15477a7a419d..e6e2a1709585f3e2706da620921d89cfdb917f5e 100755 (executable)
@@ -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 = "";