mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
Merge branch 'methods2functions' of https://framagit.org/peetah/rss-bridge
This commit is contained in:
commit
970e216c1f
114 changed files with 899 additions and 904 deletions
|
@ -47,8 +47,8 @@ class SensCritiqueBridge extends BridgeAbstract {
|
|||
case 'bd': $uri.='bd/actualite'; break;
|
||||
case 'mu': $uri.='musique/actualite'; break;
|
||||
}
|
||||
$html = $this->getSimpleHTMLDOM($uri)
|
||||
or $this->returnServerError('No results for this query.');
|
||||
$html = getSimpleHTMLDOM($uri)
|
||||
or returnServerError('No results for this query.');
|
||||
$list = $html->find('ul.elpr-list', 0);
|
||||
|
||||
$this->extractDataFromList($list);
|
||||
|
@ -58,7 +58,7 @@ class SensCritiqueBridge extends BridgeAbstract {
|
|||
|
||||
private function extractDataFromList($list) {
|
||||
if ($list === null) {
|
||||
$this->returnClientError('Cannot extract data from list');
|
||||
returnClientError('Cannot extract data from list');
|
||||
}
|
||||
|
||||
foreach ($list->find('li') as $movie) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue