Skip to content

Commit

Permalink
[PepperBridgeAbstract] Fix the "no result" detection (RSS-Bridge#4082)
Browse files Browse the repository at this point in the history
The "no result" test did not work, it is fixed now.
  • Loading branch information
sysadminstory committed Apr 17, 2024
1 parent 97f5daf commit 8c3e973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/PepperBridgeAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ protected function collectDeals($url)
);

// 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);
if ($noresult === null) {
$noresult = $html->find('div[id=content-list]', 0)->find('h2', 0);
if ($noresult !== null) {
$this->items = [];
} else {
foreach ($list as $deal) {
Expand Down

0 comments on commit 8c3e973

Please sign in to comment.