find('._6a66d_ImOzU', 0)->innertext ?? '';
+
+ $price = $post->find('._6a66d_6R3iN', 0)->plaintext;
+ $price = empty($auctionTimeLeft) ? $price : $price . '- kwota licytacji';
+
+ $image = $post->find('._6a66d_44ioA img', 0)->{'data-src'} ?: $post->find('._6a66d_44ioA img', 0)->src ?? false;
+ if ($image) {
+ $item['enclosures'] = [$image . '#.image'];
+ }
+
+ $offerExtraInfo = array_filter($post->find('.mqu1_g3.mgn2_12'), function ($node) {
+ return empty($node->find('.mvrt_0'));
+ });
+
+ $offerExtraInfo = $offerExtraInfo[0]->plaintext ?? '';
+
+ $isSmart = $post->find('._6a66d_TC2Zk', 0)->innertext ?? '';
+ if (str_contains($isSmart, 'z kurierem')) {
+ $offerExtraInfo .= ', Smart z kurierem';
+ } else {
+ $offerExtraInfo .= ', Smart';
+ }
+
+ $item['categories'] = [];
+ $parameters = $post->find('dd');
+ foreach ($parameters as $parameter) {
+ if (in_array(strtolower($parameter->innertext), ['brak', 'nie'])) {
+ continue;
+ }
+
+ $item['categories'][] = $parameter->innertext;
+ }
+
+ $item['content'] = $descriptionPretty
+ . ''
+ . $price
+ . '
'
+ . $auctionTimeLeft
+ . '
'
+ . $buyNowAuction
+ . '
'
+ . $offerExtraInfo
+ . '
';
+
+ $this->items[] = $item;
+ }
+ }
+}