mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[SensCritique] Fix bridge (#3860)
This commit is contained in:
parent
ad2d4c7b1b
commit
c8178e1fc4
@ -57,7 +57,7 @@ class SensCritiqueBridge extends BridgeAbstract
|
||||
}
|
||||
$html = getSimpleHTMLDOM($uri);
|
||||
// This selector name looks like it's automatically generated
|
||||
$list = $html->find('div.Universes__WrapperProducts-sc-1qa2w66-0.eVdcAv', 0);
|
||||
$list = $html->find('div[data-testid="row"]', 0);
|
||||
|
||||
$this->extractDataFromList($list);
|
||||
}
|
||||
@ -69,6 +69,7 @@ class SensCritiqueBridge extends BridgeAbstract
|
||||
if ($list === null) {
|
||||
returnClientError('Cannot extract data from list');
|
||||
}
|
||||
|
||||
foreach ($list->find('div[data-testid="product-list-item"]') as $movie) {
|
||||
$item = [];
|
||||
$item['title'] = $movie->find('h2 a', 0)->plaintext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user