? 802968-1.itunes_emaudio.patch
? itunes_908200.patch
? itunes_atom_self_link.patch
Index: views/itunes_plugin_style_rss.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/itunes/views/itunes_plugin_style_rss.inc,v
retrieving revision 1.1
diff -u -p -r1.1 itunes_plugin_style_rss.inc
--- views/itunes_plugin_style_rss.inc	20 May 2010 22:55:48 -0000	1.1
+++ views/itunes_plugin_style_rss.inc	13 Sep 2010 18:59:23 -0000
@@ -172,6 +172,19 @@ class itunes_plugin_style_rss extends vi
   function get_channel_elements() {
     $extra = parent::get_channel_elements();
 
+    // Try to add an atom self link to make feed validators happy.
+    if ($path = $this->display->handler->get_path()) {
+      $extra[] = array(
+        'namespace' => array('xmlns:atom' => 'http://www.w3.org/2005/Atom'),
+        'key' => 'atom:link',
+        'attributes' => array(
+          'href' => url($path, array('absolute' => TRUE)),
+          'rel' => 'self',
+          'type' => 'application/rss+xml',
+        ),
+      );
+    }
+
     // Specify the namespace in this element because it is always included so
     // we can omit it from subsequent elements.
     $extra[] = array(
@@ -267,4 +280,4 @@ class itunes_plugin_style_rss extends vi
 
     return $extra;
   }
-}
\ No newline at end of file
+}
