mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 15:06:53 +00:00
Modification de l'URL
This commit is contained in:
parent
1316248beb
commit
984e70853a
@ -1,15 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* RssBridgeAlias
|
* RssBridgeAlias
|
||||||
* Returns the latest alias from http://alias.sh/latest-aliases/
|
* Returns the most-used alias from http://alias.sh/latest-aliases/
|
||||||
*
|
*
|
||||||
* @name Alias
|
* @name Alias
|
||||||
* @description Returns the last alias from Alias.sh
|
* @description Returns the most used alias from Alias.sh
|
||||||
*/
|
*/
|
||||||
class AliasBridge extends BridgeAbstract{
|
class AliasBridge extends BridgeAbstract{
|
||||||
|
|
||||||
public function collectData(array $param){
|
public function collectData(array $param){
|
||||||
$html = file_get_html('http://alias.sh/latest-aliases/') or $this->returnError('Could not request Alias.', 404);
|
$html = file_get_html('http://alias.sh/most-popular/usage') or $this->returnError('Could not request Alias.', 404);
|
||||||
$html = $html->find('#content',0);
|
$html = $html->find('#content',0);
|
||||||
foreach($html->find('.views-row') as $element) {
|
foreach($html->find('.views-row') as $element) {
|
||||||
$item = new \Item();
|
$item = new \Item();
|
||||||
@ -22,7 +22,7 @@ class AliasBridge extends BridgeAbstract{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
return 'Alias latest';
|
return 'Alias most used';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURI(){
|
public function getURI(){
|
||||||
|
Loading…
Reference in New Issue
Block a user