mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-18 22:31:42 +02:00
use BridgeAbstract::file_get_html in all bridges
instead of simple_html_dom function file_get_html Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -47,12 +47,12 @@ class SuperbWallpapersBridge extends BridgeAbstract {
|
||||
|
||||
// Get last page number
|
||||
$link = $baseUri.'/'.$this->category.'/9999.html';
|
||||
$html = file_get_html($link);
|
||||
$html = $this->file_get_html($link);
|
||||
$lastpage = min($html->find('.paging .cpage', 0)->innertext(), ceil($max/36));
|
||||
|
||||
for ($page = 1; $page <= $lastpage; $page++) {
|
||||
$link = $baseUri.'/'.$this->category.'/'.$page.'.html';
|
||||
$html = file_get_html($link) or $this->returnError('No results for this query.', 404);
|
||||
$html = $this->file_get_html($link) or $this->returnError('No results for this query.', 404);
|
||||
|
||||
foreach($html->find('.wpl .i a') as $element) {
|
||||
$thumbnail = $element->find('img', 0);
|
||||
|
Reference in New Issue
Block a user