diff --git a/src/FeedIo/Rule/Media.php b/src/FeedIo/Rule/Media.php index e993060..2bc54f5 100644 --- a/src/FeedIo/Rule/Media.php +++ b/src/FeedIo/Rule/Media.php @@ -85,6 +85,7 @@ public function createMediaElement(DomDocument $document, MediaInterface $media) protected function initMedia(MediaInterface $media, DOMElement $element): void { + $media->setType($element->getAttribute('type')); $media->setTitle($this->getChildValue($element, 'title', static::MRSS_NAMESPACE)); $media->setDescription($this->getChildValue($element, 'description', static::MRSS_NAMESPACE)); $media->setThumbnail($this->getChildAttributeValue($element, 'thumbnail', 'url', static::MRSS_NAMESPACE));