Commit a0b69925 authored by John Long's avatar John Long

RSS Feed: Add missing link, image link attributes

Resolves #12
parent c6755c9c
Pipeline #49954300 passed with stages
in 1 minute and 52 seconds
......@@ -43,6 +43,8 @@ $atom['href'] = $url;
$atom['rel'] = "self";
$atom['type'] = "application/rss+xml";
$channel->addChild('link', $url);
$channel->title = $feed->feed->name;
$channel->addChild('lastBuildDate', (new DateTime())->format(DateTime::RSS));
$channel->addChild('block', 'yes', $itunes_ns);
......@@ -58,6 +60,7 @@ $channel->addCData('description', $description);
$image = $channel->addChild('image');
$image->url = $feed->feed->largeThumbnailURL ?: $feed->feed->thumbnailURL;
$image->title = $feed->feed->name;
$image->link = $url;
$used_urls = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment