Fixed pollin info provider

This fixes issue #1015
This commit is contained in:
Jan Böhmer 2025-09-06 23:42:09 +02:00
parent 890621b651
commit ced16620ec

View file

@ -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),