mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
[PlanetLibre] Fix indentation and remove empty lines
This commit is contained in:
parent
77f326e377
commit
2913f86684
@ -1,17 +1,15 @@
|
||||
<?php
|
||||
class PlanetLibreBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
public function loadMetadatas(){
|
||||
$this->maintainer = "pit-fgfjiudghdf";
|
||||
$this->name = "PlanetLibre";
|
||||
$this->uri = "http://www.planet-libre.org";
|
||||
$this->description = "Returns the 5 newest posts from PlanetLibre (full text)";
|
||||
$this->update = "2016-08-04";
|
||||
|
||||
}
|
||||
|
||||
function PlanetLibreExtractContent($url) {
|
||||
function PlanetLibreExtractContent($url){
|
||||
$html2 = $this->file_get_html($url);
|
||||
$text = $html2->find('div[class="post-text"]', 0)->innertext;
|
||||
return $text;
|
||||
@ -31,8 +29,8 @@ class PlanetLibreBridge extends BridgeAbstract{
|
||||
$limit++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return 'PlanetLibre';
|
||||
}
|
||||
@ -43,4 +41,3 @@ class PlanetLibreBridge extends BridgeAbstract{
|
||||
return 3600*2; // 1 hour
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user