From 9c5b23f68181cff062d1b81a2a815c032989157d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 20 Oct 2013 15:33:19 +0200 Subject: add support for text posts for the 'Least I Could Do' enhancer --- articleenhancer/xpathenhancers.json | 2 +- utility/simplepiefilefactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/articleenhancer/xpathenhancers.json b/articleenhancer/xpathenhancers.json index c92ecd64b..54f0b2958 100644 --- a/articleenhancer/xpathenhancers.json +++ b/articleenhancer/xpathenhancers.json @@ -13,7 +13,7 @@ "%feeds.penny-arcade.com/~r/pa-mainsite%": "//*[starts-with(@class, \"post\")]" }, "leasticoulddo.com": { - "%feedproxy.google.com/~r/LICD%": "//*[@id='comic-img']/a/img | //*[@id='comic-img']/img" + "%feedproxy.google.com/~r/LICD%": "//*[@id='comic-img']/a/img | //*[@id='comic-img']/img | //*[@id='post']" }, "escapistmagazine.com/articles/view/comics/critical-miss": { "%escapistmagazine.com/articles/view/comics/critical-miss%": "//*[@class='body']/span/img" diff --git a/utility/simplepiefilefactory.php b/utility/simplepiefilefactory.php index 5f1867c38..a7a051c23 100644 --- a/utility/simplepiefilefactory.php +++ b/utility/simplepiefilefactory.php @@ -29,7 +29,7 @@ namespace OCA\News\Utility; class SimplePieFileFactory { public function getFile($url, $timeout, $userAgent = null) { - return new \SimplePie_File($url, $timeout, null, null, $userAgent); + return new \SimplePie_File($url, $timeout, 5, null, $userAgent); } } -- cgit v1.2.3