mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[PepperBridgeAbstract] Fix the "no result" detection (#4082)
The "no result" test did not work, it is fixed now.
This commit is contained in:
parent
97f5dafbc5
commit
8c3e973b9f
@ -55,8 +55,8 @@ class PepperBridgeAbstract extends BridgeAbstract
|
|||||||
);
|
);
|
||||||
|
|
||||||
// If there is no results, we don't parse the content because it display some random deals
|
// If there is no results, we don't parse the content because it display some random deals
|
||||||
$noresult = $html->find('section[class=subNav]', 0)->find('div[class*=page-center listLayout aGrid]', 0);
|
$noresult = $html->find('div[id=content-list]', 0)->find('h2', 0);
|
||||||
if ($noresult === null) {
|
if ($noresult !== null) {
|
||||||
$this->items = [];
|
$this->items = [];
|
||||||
} else {
|
} else {
|
||||||
foreach ($list as $deal) {
|
foreach ($list as $deal) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user