[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.
This commit is contained in:
parent
d07deb0930
commit
c4cccfe0f3
1 changed files with 2 additions and 10 deletions
|
@ -3,7 +3,7 @@ class LesJoiesDuCodeBridge extends BridgeAbstract {
|
||||||
|
|
||||||
const MAINTAINER = 'superbaillot.net';
|
const MAINTAINER = 'superbaillot.net';
|
||||||
const NAME = 'Les Joies Du Code';
|
const NAME = 'Les Joies Du Code';
|
||||||
const URI = 'http://lesjoiesducode.fr/';
|
const URI = 'https://lesjoiesducode.fr/';
|
||||||
const CACHE_TIMEOUT = 7200; // 2h
|
const CACHE_TIMEOUT = 7200; // 2h
|
||||||
const DESCRIPTION = 'LesJoiesDuCode';
|
const DESCRIPTION = 'LesJoiesDuCode';
|
||||||
|
|
||||||
|
@ -27,15 +27,7 @@ class LesJoiesDuCodeBridge extends BridgeAbstract {
|
||||||
}
|
}
|
||||||
$content = $temp->innertext;
|
$content = $temp->innertext;
|
||||||
|
|
||||||
$auteur = $temp->find('i', 0);
|
$item['content'] = trim($content);
|
||||||
$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['uri'] = $url;
|
$item['uri'] = $url;
|
||||||
$item['title'] = trim($titre);
|
$item['title'] = trim($titre);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue