mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
bridges: Remove unnecessary functions getName() and getURI()
This commit is contained in:
parent
9f3e7e1da7
commit
63bb7ef24d
104 changed files with 107 additions and 854 deletions
|
@ -3,10 +3,10 @@ class MsnMondeBridge extends BridgeAbstract{
|
|||
|
||||
public function loadMetadatas() {
|
||||
$this->maintainer = "kranack";
|
||||
$this->name = "MSN Actu Monde";
|
||||
$this->uri = "http://www.msn.com/fr-fr/actualite/monde";
|
||||
$this->name = 'MSN Actu Monde';
|
||||
$this->uri = 'http://www.msn.com/fr-fr/actualite/monde';
|
||||
$this->description = "Returns the 10 newest posts from MSN Actualités (full text)";
|
||||
$this->update = "2016-08-06";
|
||||
$this->update = "2016-08-09";
|
||||
}
|
||||
|
||||
private function MsnMondeExtractContent($url, &$item) {
|
||||
|
@ -16,7 +16,7 @@ class MsnMondeBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = $this->file_get_html($this->getURI()) or $this->returnError('Could not request MsnMonde.', 404);
|
||||
$html = $this->file_get_html($this->uri) or $this->returnError('Could not request MsnMonde.', 404);
|
||||
$limit = 0;
|
||||
foreach($html->find('.smalla') as $article) {
|
||||
if($limit < 10) {
|
||||
|
@ -29,12 +29,4 @@ class MsnMondeBridge extends BridgeAbstract{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
return 'MSN Actu Monde';
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return 'http://www.msn.com/fr-fr/actualite/monde';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue