]> git.wh0rd.org Git - tt-rss.git/commitdiff
redditimgur: support /album/
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 May 2013 17:54:38 +0000 (21:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 May 2013 17:54:38 +0000 (21:54 +0400)
plugins/af_redditimgur/init.php

index 39a20784cd2a805262c8972b4cabf6a9779b0024..2e466f167f88a78f1d510dc2ef09f77d31fe215b 100644 (file)
@@ -81,7 +81,7 @@ class Af_RedditImgur extends Plugin {
                                                        }
 
                                                        // linked albums, ffs
-                                                       if (preg_match("/^http:\/\/imgur.com\/a\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
+                                                       if (preg_match("/^http:\/\/imgur.com\/(a|album)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
 
                                                                $album_content = fetch_file_contents($entry->getAttribute("href"),
                                                                        false, false, false, false, 10);