Skip to content
Snippets Groups Projects
Commit aff91fce authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

redditimgur: support /album/

parent 45a4531f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment