From c4cccfe0f346eeeb22f181f9cf7e0178eac015b9 Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Tue, 21 Aug 2018 17:41:56 +0200 Subject: [PATCH] [LesJoiesDuCode] Switch to HTTPS and remove author (#787) Website offers now HTTPS, therefore the bridge was switched to it. The post author is not displayed anymore on the homepage, so it has been removed. --- bridges/LesJoiesDuCodeBridge.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/bridges/LesJoiesDuCodeBridge.php b/bridges/LesJoiesDuCodeBridge.php index 5f61f955..0957d921 100644 --- a/bridges/LesJoiesDuCodeBridge.php +++ b/bridges/LesJoiesDuCodeBridge.php @@ -3,7 +3,7 @@ class LesJoiesDuCodeBridge extends BridgeAbstract { const MAINTAINER = 'superbaillot.net'; const NAME = 'Les Joies Du Code'; - const URI = 'http://lesjoiesducode.fr/'; + const URI = 'https://lesjoiesducode.fr/'; const CACHE_TIMEOUT = 7200; // 2h const DESCRIPTION = 'LesJoiesDuCode'; @@ -27,15 +27,7 @@ class LesJoiesDuCodeBridge extends BridgeAbstract { } $content = $temp->innertext; - $auteur = $temp->find('i', 0); - $pos = strpos($auteur->innertext, 'by'); - - if($pos > 0) { - $auteur = trim(str_replace('*/', '', substr($auteur->innertext, ($pos + 2)))); - $item['author'] = $auteur; - } - - $item['content'] .= trim($content); + $item['content'] = trim($content); $item['uri'] = $url; $item['title'] = trim($titre);