mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Show the desired part, when searching for the pollin part number
This commit is contained in:
parent
b2d4333fff
commit
8d9dde0032
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,12 @@ class PollinProvider implements InfoProviderInterface
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$content = $response->getContent();
|
$content = $response->getContent();
|
||||||
|
|
||||||
|
//If the response has us redirected to the product page, then just return the single item
|
||||||
|
if ($response->getInfo('redirect_count') > 0) {
|
||||||
|
return [$this->parseProductPage($content)];
|
||||||
|
}
|
||||||
|
|
||||||
$dom = new Crawler($content);
|
$dom = new Crawler($content);
|
||||||
|
|
||||||
$results = [];
|
$results = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue