Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit c149304

Browse files
authored
Fix #361 (#387)
1 parent 6ada32a commit c149304

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FeedIo/Rule/Media.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function createMediaElement(DomDocument $document, MediaInterface $media)
8585

8686
protected function initMedia(MediaInterface $media, DOMElement $element): void
8787
{
88+
$media->setType($element->getAttribute('type'));
8889
$media->setTitle($this->getChildValue($element, 'title', static::MRSS_NAMESPACE));
8990
$media->setDescription($this->getChildValue($element, 'description', static::MRSS_NAMESPACE));
9091
$media->setThumbnail($this->getChildAttributeValue($element, 'thumbnail', 'url', static::MRSS_NAMESPACE));

0 commit comments

Comments
 (0)