]> git.wh0rd.org - tt-rss.git/commitdiff
af_redditimgur: add yet another imgur album variant
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 5 Jul 2015 21:58:55 +0000 (00:58 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 5 Jul 2015 21:58:55 +0000 (00:58 +0300)
plugins/af_redditimgur/init.php

index 809792dd8ba219b896374bcf193520f66f523a5a..c680ee32227e40ef4c7521dc04561836a9e6a080 100644 (file)
@@ -132,7 +132,7 @@ class Af_RedditImgur extends Plugin {
                                                        }
 
                                                        // linked albums, ffs
-                                                       if (preg_match("/^https?:\/\/imgur.com\/(a|album)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
+                                                       if (preg_match("/^https?:\/\/imgur.com\/(a|album|gallery)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
 
                                                                $album_content = fetch_file_contents($entry->getAttribute("href"),
                                                                        false, false, false, false, 10);