mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
bridges: use BridgeAbstract::getSimpleHTMLDOM
instead of BridgeAbstract::file_get_html Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
f43bbda83e
commit
3c0d13c1bb
121 changed files with 1212 additions and 396 deletions
|
@ -59,7 +59,7 @@ class JapanExpoBridge extends BridgeAbstract{
|
|||
};
|
||||
|
||||
$link = 'http://www.japan-expo-paris.com/fr/actualites';
|
||||
$html = $this->file_get_html($link) or $this->returnServerError('Could not request JapanExpo: '.$link);
|
||||
$html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request JapanExpo: '.$link);
|
||||
$fullcontent = (!empty($param['mode']) && $param['mode'] == 'full');
|
||||
$count = 0;
|
||||
|
||||
|
@ -73,7 +73,7 @@ class JapanExpoBridge extends BridgeAbstract{
|
|||
|
||||
if ($fullcontent) {
|
||||
if ($count < 5) {
|
||||
$article_html = $this->file_get_html($url) or $this->returnServerError('Could not request JapanExpo: '.$url);
|
||||
$article_html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request JapanExpo: '.$url);
|
||||
$header = $article_html->find('header.pageHeadBox', 0);
|
||||
$timestamp = strtotime($header->find('time', 0)->datetime);
|
||||
$title_html = $header->find('div.section', 0)->next_sibling();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue