redditimgur: support /album/

This commit is contained in:
Andrew Dolgov 2013-05-15 21:54:38 +04:00
parent 45a4531f98
commit aff91fce87
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Af_RedditImgur extends Plugin {
} }
// linked albums, ffs // 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"), $album_content = fetch_file_contents($entry->getAttribute("href"),
false, false, false, false, 10); false, false, false, false, 10);