mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 10:34:55 +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
|
@ -33,15 +33,15 @@ class SuperbWallpapersBridge extends BridgeAbstract {
|
|||
|
||||
// Get last page number
|
||||
$link = self::URI.'/'.$category.'/9999.html';
|
||||
$html = $this->getSimpleHTMLDOM($link)
|
||||
or $this->returnServerError('Could not load '.$link);
|
||||
$html = getSimpleHTMLDOM($link)
|
||||
or returnServerError('Could not load '.$link);
|
||||
|
||||
$lastpage = min($html->find('.paging .cpage', 0)->innertext(), ceil($max/36));
|
||||
|
||||
for ($page = 1; $page <= $lastpage; $page++) {
|
||||
$link = self::URI.'/'.$category.'/'.$page.'.html';
|
||||
$html = $this->getSimpleHTMLDOM($link)
|
||||
or $this->returnServerError('No results for this query.');
|
||||
$html = getSimpleHTMLDOM($link)
|
||||
or returnServerError('No results for this query.');
|
||||
|
||||
foreach($html->find('.wpl .i a') as $element) {
|
||||
$thumbnail = $element->find('img', 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue