1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 05:40:24 +02:00

SoundcloudBridge & Add icon to Atom Format

This commit is contained in:
Damien Calesse
2014-07-24 13:51:42 +02:00
parent 4b0ac11b82
commit c06343128a
2 changed files with 58 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ class AtomFormat extends FormatAbstract{
$extraInfos = $this->getExtraInfos();
$title = htmlspecialchars($extraInfos['name']);
$uri = htmlspecialchars($extraInfos['uri']);
$icon = 'http://g.etfv.co/'. $uri .'?icon.jpg';
$entries = '';
foreach($this->getDatas() as $data){
@@ -64,6 +65,8 @@ $feedTimestamp = date(DATE_ATOM, time());
<title type="text">{$title}</title>
<id>http{$https}://{$httpHost}{$httpInfo}/</id>
<icon>{$icon}</icon>
<logo>{$icon}</logo>
<updated>{$feedTimestamp}</updated>
<link rel="alternate" type="text/html" href="{$uri}" />
<link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />