forked from blallo/rss-bridge
[PlanetLibre] Fix indentation and remove empty lines
This commit is contained in:
parent
77f326e377
commit
2913f86684
1 changed files with 30 additions and 33 deletions
|
@ -1,17 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
class PlanetLibreBridge extends BridgeAbstract{
|
class PlanetLibreBridge extends BridgeAbstract{
|
||||||
|
|
||||||
public function loadMetadatas() {
|
public function loadMetadatas(){
|
||||||
|
|
||||||
$this->maintainer = "pit-fgfjiudghdf";
|
$this->maintainer = "pit-fgfjiudghdf";
|
||||||
$this->name = "PlanetLibre";
|
$this->name = "PlanetLibre";
|
||||||
$this->uri = "http://www.planet-libre.org";
|
$this->uri = "http://www.planet-libre.org";
|
||||||
$this->description = "Returns the 5 newest posts from PlanetLibre (full text)";
|
$this->description = "Returns the 5 newest posts from PlanetLibre (full text)";
|
||||||
$this->update = "2016-08-04";
|
$this->update = "2016-08-04";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function PlanetLibreExtractContent($url) {
|
function PlanetLibreExtractContent($url){
|
||||||
$html2 = $this->file_get_html($url);
|
$html2 = $this->file_get_html($url);
|
||||||
$text = $html2->find('div[class="post-text"]', 0)->innertext;
|
$text = $html2->find('div[class="post-text"]', 0)->innertext;
|
||||||
return $text;
|
return $text;
|
||||||
|
@ -31,8 +29,8 @@ class PlanetLibreBridge extends BridgeAbstract{
|
||||||
$limit++;
|
$limit++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
return 'PlanetLibre';
|
return 'PlanetLibre';
|
||||||
}
|
}
|
||||||
|
@ -43,4 +41,3 @@ class PlanetLibreBridge extends BridgeAbstract{
|
||||||
return 3600*2; // 1 hour
|
return 3600*2; // 1 hour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue