mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-20 00:33:45 +01:00
Show the desired part, when searching for the pollin part number
This commit is contained in:
@@ -74,6 +74,12 @@ class PollinProvider implements InfoProviderInterface
|
||||
]);
|
||||
|
||||
$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);
|
||||
|
||||
$results = [];
|
||||
|
||||
Reference in New Issue
Block a user