From 3fa965cf3cb7150b1262b22ff58a415191dcdad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Wed, 14 Sep 2016 10:22:28 +0200 Subject: [PATCH 1/3] [FierPandaBridge] fix title extraction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/FierPandaBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/FierPandaBridge.php b/bridges/FierPandaBridge.php index 5c574fc..b2e9d9c 100644 --- a/bridges/FierPandaBridge.php +++ b/bridges/FierPandaBridge.php @@ -12,7 +12,7 @@ class FierPandaBridge extends BridgeAbstract { foreach($html->find('div.container-content article') as $element) { $item = array(); $item['uri'] = $this->getURI().$element->find('a', 0)->href; - $item['title'] = trim($element->find('h2 a', 0)->innertext); + $item['title'] = trim($element->find('h1 a', 0)->innertext); // Remove the link at the end of the article $element->find('p a', 0)->outertext = ''; $item['content'] = $element->find('p', 0)->innertext; From 294d89bd3693fb385ec25a9b98e81a73ed42497b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Wed, 14 Sep 2016 10:23:35 +0200 Subject: [PATCH 2/3] [SexactuBridge] add Bridge suffix to class name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/{Sexactu.php => SexactuBridge.php} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename bridges/{Sexactu.php => SexactuBridge.php} (96%) diff --git a/bridges/Sexactu.php b/bridges/SexactuBridge.php similarity index 96% rename from bridges/Sexactu.php rename to bridges/SexactuBridge.php index e78098b..9981e2b 100644 --- a/bridges/Sexactu.php +++ b/bridges/SexactuBridge.php @@ -1,9 +1,10 @@ Date: Wed, 14 Sep 2016 10:24:19 +0200 Subject: [PATCH 3/3] [ZoneTelechargementBridge] fix feed url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/ZoneTelechargementBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/ZoneTelechargementBridge.php b/bridges/ZoneTelechargementBridge.php index ee54783..2fd1612 100644 --- a/bridges/ZoneTelechargementBridge.php +++ b/bridges/ZoneTelechargementBridge.php @@ -18,7 +18,7 @@ class ZoneTelechargementBridge extends BridgeAbstract { return $string; } - $url = $this->getURI().$this->getInput('category').'rss.xml'; + $url = $this->getURI().$this->getInput('category').'/rss.xml'; $html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request Zone Telechargement: '.$url); foreach($html->find('item') as $element) {