mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-09 10:06:33 +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:
@@ -13,7 +13,7 @@ class LichessBridge extends BridgeAbstract
|
||||
|
||||
public function collectData(array $param)
|
||||
{
|
||||
$xml_feed = $this->file_get_html('http://fr.lichess.org/blog.atom') or $this->returnServerError('Could not retrieve Lichess blog feed.');
|
||||
$xml_feed = $this->getSimpleHTMLDOM('http://fr.lichess.org/blog.atom') or $this->returnServerError('Could not retrieve Lichess blog feed.');
|
||||
|
||||
$posts_loaded = 0;
|
||||
foreach($xml_feed->find('entry') as $entry)
|
||||
@@ -37,7 +37,7 @@ class LichessBridge extends BridgeAbstract
|
||||
|
||||
private function retrieve_lichess_post($blog_post_uri)
|
||||
{
|
||||
$blog_post_html = $this->file_get_html($blog_post_uri);
|
||||
$blog_post_html = $this->getSimpleHTMLDOM($blog_post_uri);
|
||||
$blog_post_div = $blog_post_html->find('#lichess_blog', 0);
|
||||
|
||||
$post_chapo = $blog_post_div->find('.shortlede', 0)->innertext;
|
||||
|
Reference in New Issue
Block a user