From 0663c9507f2a62a47ca46944bbcea834e6c489ba Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 8 Aug 2016 22:43:28 +0200 Subject: [PATCH] [AtomFormat] Remove enclosures This feature was implemented for AtomFormat only and implemented by no bridge other than DemoBridge. --- bridges/DemoBridge.php | 3 +-- formats/AtomFormat.php | 10 ---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php index b1d8515e..3f713754 100644 --- a/bridges/DemoBridge.php +++ b/bridges/DemoBridge.php @@ -7,7 +7,7 @@ class DemoBridge extends BridgeAbstract{ $this->name = "DemoBridge"; $this->uri = "http://github.com/sebsauvage/rss-bridge"; $this->description = "Bridge used for demos"; - $this->update = "2015-11-03"; + $this->update = "2016-08-08"; $this->parameters['testCheckbox'] = '[ @@ -59,7 +59,6 @@ class DemoBridge extends BridgeAbstract{ $item->content = "Awesome content !"; $item->id = "Lalala"; $item->uri = "http://test.test/test"; - $item->enclosures[] = "http://www.ardmediathek.de/ard/servlet/image/00/32/68/18/38/1135274624/16x9/960"; $this->items[] = $item; diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 303e3866..18f27b4d 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -36,15 +36,6 @@ class AtomFormat extends FormatAbstract{ // We prevent content from closing the CDATA too early. $entryContent = is_null($data->content) ? '' : 'sanitizeHtml(str_replace(']]>','',$data->content)) . ']]>'; - // We generate a list of the enclosure links - $entryEnclosures = ""; - - foreach($data->enclosures as $enclosure) { - - $entryEnclosures .= ""; - - } - $entries .= << @@ -57,7 +48,6 @@ class AtomFormat extends FormatAbstract{ {$entryUri} {$entryTimestamp} {$entryContent} - {$entryEnclosures} EOD;