From 47193403eac577cffdd3ca5d018fddbfb6d81888 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 17 Nov 2015 19:33:36 -0500 Subject: [PATCH] Added ATOM xmlns for iTunes support --- airtime_mvc/application/services/PodcastService.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/airtime_mvc/application/services/PodcastService.php b/airtime_mvc/application/services/PodcastService.php index 333e8a865..076581853 100644 --- a/airtime_mvc/application/services/PodcastService.php +++ b/airtime_mvc/application/services/PodcastService.php @@ -368,6 +368,13 @@ class Application_Service_PodcastService self::addEscapedChild($channel, "language", $podcast->getDbLanguage()); self::addEscapedChild($channel, "copyright", $podcast->getDbCopyright()); + $xml->addAttribute('xmlns:xmlns:atom', "http://www.w3.org/2005/Atom"); + + $atomLink = $channel->addChild("xmlns:atom:link"); + $atomLink->addAttribute("href", Application_Common_HTTPHelper::getStationUrl(false) . "feeds/station-rss"); + $atomLink->addAttribute("rel", "self"); + $atomLink->addAttribute("type", "application/rss+xml"); + $imageUrl = Application_Common_HTTPHelper::getStationUrl(false)."images/airtime_logo.png"; $image = $channel->addChild("image"); $image->addChild("title", "image title");