]> git.wh0rd.org Git - tt-rss.git/commitdiff
af_redditimgur: try to handle mobile imgur albums
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Mar 2016 06:20:36 +0000 (09:20 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Mar 2016 06:20:36 +0000 (09:20 +0300)
plugins/af_redditimgur/init.php

index 5e9d9f7c83e3c6601058f76eb8778d308fbb7bf6..2e07481373826e4eb98829b6dd710439f3cc6bad 100755 (executable)
@@ -195,7 +195,7 @@ class Af_RedditImgur extends Plugin {
                                // linked albums & pages
 
                                if (preg_match("/^https?:\/\/(m\.)?imgur.com\/([^\.\/]+$)/", $entry->getAttribute("href"), $matches) ||
-                                       preg_match("/^https?:\/\/imgur.com\/(a|album|gallery)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
+                                       preg_match("/^https?:\/\/(m\.)?imgur.com\/(a|album|gallery)\/[^\.]+$/", $entry->getAttribute("href"), $matches)) {
 
                                        _debug("Handling as an imgur page/album/gallery", $debug);