Skip to content

Commit ced1662

Browse files
committed
Fixed pollin info provider
This fixes issue #1015
1 parent 890621b commit ced1662

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Services/InfoProviderSystem/Providers/PollinProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ private function parseProductPage(string $content): PartDetailDTO
158158
category: $this->parseCategory($dom),
159159
manufacturer: $dom->filter('meta[property="product:brand"]')->count() > 0 ? $dom->filter('meta[property="product:brand"]')->attr('content') : null,
160160
preview_image_url: $dom->filter('meta[property="og:image"]')->attr('content'),
161-
manufacturing_status: $this->mapAvailability($dom->filter('link[itemprop="availability"]')->attr('href')),
161+
//TODO: Find another way to determine the manufacturing status, as the itemprop="availability" is often is not existing anymore in the page
162+
//manufacturing_status: $this->mapAvailability($dom->filter('link[itemprop="availability"]')->attr('href')),
162163
provider_url: $productPageUrl,
163164
notes: $this->parseNotes($dom),
164165
datasheets: $this->parseDatasheets($dom),

0 commit comments

Comments
 (0)