Merge branch 'master' of git.fakecake.org:tt-rss
This commit is contained in:
commit
6affdc59a3
|
@ -1,3 +1,5 @@
|
||||||
|
/deploy.exclude
|
||||||
|
/deploy.sh
|
||||||
/messages.mo
|
/messages.mo
|
||||||
*~
|
*~
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
|
@ -84,9 +84,8 @@ class Af_RedditImgur extends Plugin {
|
||||||
$found = true;
|
$found = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9])?$/i", $entry->getAttribute("href"))) {
|
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?$/i", $entry->getAttribute("href"))) {
|
||||||
|
$img = $doc->createElement('img');
|
||||||
$img = $doc->createElement('img');
|
|
||||||
$img->setAttribute("src", $entry->getAttribute("href"));
|
$img->setAttribute("src", $entry->getAttribute("href"));
|
||||||
|
|
||||||
$br = $doc->createElement('br');
|
$br = $doc->createElement('br');
|
||||||
|
@ -133,7 +132,7 @@ class Af_RedditImgur extends Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
// linked albums, ffs
|
// 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"),
|
$album_content = fetch_file_contents($entry->getAttribute("href"),
|
||||||
false, false, false, false, 10);
|
false, false, false, false, 10);
|
||||||
|
|
Loading…
Reference in New Issue