Download & Extend

This function in emfield.rss.inc seems to be causing rss to be malformed.

Project:Embedded Media Field
Version:6.x-1.0-alpha2
Component:Embedded Video Field
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

// Workaround for http://drupal.org/node/157709.
static $been_here = FALSE;
if (! $been_here) {
$rss[] = array('namespace' => array('xmlns:media="http://search.yahoo.com/mrss/"'));
$been_here = TRUE;
}

Bad output is the "0" attribute in the 2nd line:

Comments

#1

Yes, my RSS feeds were broken until I found http://www.drupal.ru/node/19118 (sorry if you do not know Russian :))

But the following change works and resolves the 0="xmlns:media=http://search.yahoo.com/mrss/ problem:

change in emfield.rss.inc, line 123

// Workaround for http://drupal.org/node/157709.
static $been_here = FALSE;
if (! $been_here) {
/* change start - fix the next line as per http://www.drupal.ru/node/19118
$rss[] = array('namespace' => array('xmlns:media="http://search.yahoo.com/mrss/"'));
*/
$rss[] = array('namespace' => array('xmlns:media' => 'http://search.yahoo.com/mrss/'));
// change end
$been_here = TRUE;
}

AttachmentSize
emfield.rss_.inc_.txt 5.08 KB

#2

Status:postponed (maintainer needs more info)» closed (duplicate)

This is a duplicate of #301741: RSS Feed: XML Media Namespace Not correctly set. A patch was provided in that issue (implementing the same fix as proposed in #1).

#3

Status:closed (duplicate)» fixed

Thanks- this is already applied to the dev version...

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here