From e46a480c5d8ebeb1d0e97430cde512a642eef1ab Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 29 Aug 2016 20:05:45 +0200 Subject: [PATCH] [MrssFormat] Add icon to feed --- formats/MrssFormat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index d0a74177..ddbd5d35 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -15,6 +15,7 @@ class MrssFormat extends FormatAbstract{ $extraInfos = $this->getExtraInfos(); $title = $this->xml_encode($extraInfos['name']); $uri = $this->xml_encode(!empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/sebsauvage/rss-bridge'); + $icon = $this->xml_encode('http://icons.better-idea.org/icon?url='. $uri .'&size=64'); $items = ''; foreach($this->getItems() as $item){ @@ -45,6 +46,7 @@ EOD; {$title} http{$https}://{$httpHost}{$httpInfo}/ {$title} + {$items}