I'm using Drupal 6.14, Embedded Media Field 1.15, and Views 2.6.

1. I have an rss feed that outputs a directory of drupal videos:
http://yadadrop.com/drupal-video

2. In this feed, there is a media enclosure tag for each node:
<enclosure url="blip.tv/.../somefile.flv" length="214681390" type="video/x-flv" />

3. This feed is being generated by Views and there are no options within Views to turn off enclosures. There are Embedded Media options within my custom content type to configure RSS options. BUT, none of those options include enclosures:
http://DOMAIN/admin/content/types/CONTENT-TYPE/display/rss

Any thoughts on how to disable the output of rss enclosures?

Peace,
Brian

Comments

aaron’s picture

There should be a field setting on the admin page in 3, that has '<hidden>' as an option, as well as an 'exclude' check box. (edited because drupal didn't like hidden in gt/lt)

Brian294’s picture

Status: Active » Postponed (maintainer needs more info)

thanks aaron. so this should be resolved in views 3?

aaron’s picture

no, i meant number 3 of your example. http://DOMAIN/admin/content/types/CONTENT-TYPE/display/rss should have <hidden> (which ended up not coming through drupal's filter, sorry). or an exclude check box.

Brian294’s picture

StatusFileSize
new219.97 KB
new140.89 KB

Thanks for the quick response aaron!

Ah, I see what you mean. Check out the two image files that I have attached to this issue. They illustrate the mapping between admin and the actual rss.

The Embedded Media in admin *is* correctly mapped to the Embedded Media field in the rss (illustrated with the black circle). However, there is an attachment/enclosure that is being included in the RSS. I can't find a way to shut off that feature anywhere in Drupal. (illustrated with a black question mark)

Peace,
Brian

aaron’s picture

brian,

try checking the 'exclude' checkbox, and selecting 'hidden' from the drop down (that currently reads 'Image Thumbnail' in the screenshot).

Brian294’s picture

StatusFileSize
new275.55 KB

here's what happens... see attached. that pesky media enclosure doesn't want to go away.

TKS’s picture

I can confirm this problem (which affects our standard em_video field, but not the Flickr Photoset "video" field provided by the Media: Flickr companion module, for whatever that's worth).

I've set our Video field to hidden and checked the exclude checkbox, and it still appears in the RSS feed. And since only the first enclosure "counts" when it comes to podcasting and valid RSS, I can't create an iTunes-compliant podcast that includes a content-type that has video as well as an MP3.

Here is an example of what appears in the feed for a node that has both a populated Embedded Media field and an MP3 in its Filefield:

 <media:content url="http://youtube.com/v/1tzQQO7oN-4" fileSize="988" type="application/x-shockwave-flash"> <media:thumbnail url="http://img.youtube.com/vi/1tzQQO7oN-4/0.jpg" />

</media:content>
 <enclosure url="http://youtube.com/v/1tzQQO7oN-4" length="988" type="application/x-shockwave-flash" />
 <enclosure url="http://SITENAME.COM/sites/nafonline.net/files/sites/SITENAME.COM/files/events/superfusion_mp3.mp3" length="16039393" type="audio/mpeg" />

I even rearranged the fields in the node, but the embedded video enclosure still comes ahead of the filefield enclosure.

Help?

feuillet’s picture

Same problem here, would like to remove the attached files too and can't find a way...
Its in general not easy to define the exact output of what fields should be in the feed...

Suggestions?

Best Regards,
Sandro

RockSoup’s picture

StatusFileSize
new85.81 KB
new44.75 KB

I am also experiencing this issue.

I am using embedded video field.
I am producing my feed with Views.
I have set the field to hidden on the display tab and also checked the exclude option (see screenshot)

I am still getting the enclosure in the feed output (see second screenshot)

I thought maybe I could just override a .tpl in views, but when I went looking through the ones in the theme information section I did not see a place where the enclosure is added in the template, so I assume that is happening elsewhere.

Any help is greatly appreciated.

thanks

RockSoup’s picture

Totally not a solution that should be used, but I was able to remove the enclosure from my rss by commenting a function in emvideo.module

function emvideo_emfield_rss($node, $items = array(), $teaser = NULL) {
  $rss_data = array();
  foreach ($items as $item) {
    // note only the first $item will get an RSS enclosure, other items may have media: data in the feed however
    if ($item['value'] && $item['provider']) {
      $rss_data[] = module_invoke('emfield', 'include_invoke', 'emvideo', $item['provider'], 'rss', $item, $teaser);
    }
  }

  return $rss_data;
}

to

function emvideo_emfield_rss($node, $items = array(), $teaser = NULL) {
  $rss_data = array();
  foreach ($items as $item) {
    // note only the first $item will get an RSS enclosure, other items may have media: data in the feed however
    if ($item['value'] && $item['provider']) {
      $rss_data[] = module_invoke('emfield', 'include_invoke', 'emvideo', $item['provider'], 'rss', $item, $teaser);
    }
  }

  //return $rss_data;
}

this will only work for the video field and is definitely not best practice, but until I can figure out the way to do this properly I am using this.

metastate’s picture

I can confirm this is happening using Drupal 6.15, CCK 6.x-2.6, Emfield 6.x-1.18.

Under Content Type -> Display Fields -> RSS, the video field is marked as hidden and excluded, but the media enclosure is still showing up in blog module's RSS feed.

Also, my watchdog was getting the following error every time someone tried to view the feed: "Could not connect to youtube, HTTP error 404"

The hack in comment #10 gets rid of both problems for me (temporary solution).

jayson’s picture

Version: 6.x-1.15 » 6.x-1.18

Subscribing.

jayson’s picture

Version: 6.x-1.18 » 6.x-1.20

Also an issue in 6.x-1.20.

jelo’s picture

Subscribe

ilyarogov’s picture

Here is the solution I found that worked for me.

http://drupal.org/project/remove_upload_enclosures

adamcadot’s picture

Subscribe

johnpitcairn’s picture

Same problem, Drupal 6.20, Emfield 6.x-2.4. YouTube fields are not affected by the CCK RSS Display settings and will output as an unwanted enclosure in the feed. I think this should be considered a bug?

johnpitcairn’s picture

Title: How do I turn off enclosures links on rss feeds generated by Views? » Feed video enclosures are unaffected by CCK RSS display settings
Version: 6.x-1.20 » 6.x-2.4
Category: support » bug
Status: Postponed (maintainer needs more info) » Active

Changing title, category, version, status accordingly

TC44’s picture

I'm just wondering if anyone has found a definitive workaround for this issue? I noticed the issue has been open for 1.5 years.

hongpong’s picture

Yeah another year on I have not been able to get the references to the video to go away in the RSS even after setting exclude and hidden on RSS field settings in the content type display settings. :(