mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
parent
890621b651
commit
ced16620ec
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ class PollinProvider implements InfoProviderInterface
|
||||||
category: $this->parseCategory($dom),
|
category: $this->parseCategory($dom),
|
||||||
manufacturer: $dom->filter('meta[property="product:brand"]')->count() > 0 ? $dom->filter('meta[property="product:brand"]')->attr('content') : null,
|
manufacturer: $dom->filter('meta[property="product:brand"]')->count() > 0 ? $dom->filter('meta[property="product:brand"]')->attr('content') : null,
|
||||||
preview_image_url: $dom->filter('meta[property="og:image"]')->attr('content'),
|
preview_image_url: $dom->filter('meta[property="og:image"]')->attr('content'),
|
||||||
manufacturing_status: $this->mapAvailability($dom->filter('link[itemprop="availability"]')->attr('href')),
|
//TODO: Find another way to determine the manufacturing status, as the itemprop="availability" is often is not existing anymore in the page
|
||||||
|
//manufacturing_status: $this->mapAvailability($dom->filter('link[itemprop="availability"]')->attr('href')),
|
||||||
provider_url: $productPageUrl,
|
provider_url: $productPageUrl,
|
||||||
notes: $this->parseNotes($dom),
|
notes: $this->parseNotes($dom),
|
||||||
datasheets: $this->parseDatasheets($dom),
|
datasheets: $this->parseDatasheets($dom),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue