I'm stymied on this one.

I created a feed for iTunes using Views_RSS and thought I could only include the audio file I uploaded for each episode (each episode includes an MP3 and a PDF).

Unfortunately, even the views_rss feed preview shows only the mp3, the actual iTunes feed URL generated by views_rss seems to be showing both the PDF and MP3 (in that order) which means iTunes is showing the PDF as the downloadable episode. Obviously not a great way to podcast.

Any way to adjust the order of files uploaded using file field (and filefield podcast) would be greatly appreciated?

Is there a way to hack the template that creates the RSS feed to put them in a certain order? The filenames are identical except the ending (.PDF or .MP3 which I would think would default the other way).

Grrrr!

Comments

geerlingguy’s picture

This same issue prevented me from using FFPC; I had to try iTunes module instead... I wish I could get FFPC to respect the first attachment (or the last) of a multi-value CCK field...

craigkendall’s picture

Category: feature » bug
Priority: Normal » Critical

I'm throwing this out as a bug report now. I can't find any way to make the PDF appear after the MP3 so my iTunes feed will work.

Because the PDF is listed first the iTunes feed doesn't work. iTunes is providing the link to the PDF, which we know won't play as an audio file, instead of the link to the MP3 file when both a PDF and MP3 are included.

I have the PDF included as a normal file attachment and a separate field (field_audio_field) set up as the MP3 file and I don't see any way to switch how they are listed in <enclosure> tags when the RSS feed is generated.

I really need to have this fixed or get some guidance on where to go to fix it.

My iTunes feed is being generated via Views and the file attachment isn't even included as one of the fields to display. Very annoying. It's like it has a mind of it's own getting all file attachments regardless of what I tell it.

phazer’s picture

I have similar issue that I cannot work around. I have a media field that I was using for podcast and it was working great. I added a YouTube field so users could publish their videos easily, and I was generating mp4 for the media fields as needed. Now the YouTube file (thumbnail) is showing up in the itunes feed instead of the mediafield, even though I have only the media field in the view. So ttwo files are in the enclosure which breaks the podcast.

When I bring up the podcast in Safari, it actually shows both enclosure items, but still I only have the single medial field. I need a hack or patch to fix this even if its in the module. This bug had disabled all my podcast feeds.

Offlein’s picture

Title: Multiple Files in Enclosures - Order or Don't Include » Multiple Filefields per Node - Exclude non-audio files
Version: 6.x-2.x-dev » 6.x-1.x-dev
Category: bug » feature
Priority: Critical » Major
Status: Active » Needs review
StatusFileSize
new836 bytes

I was experiencing this too. I think a pretty good, simple solution is to just ensure that the filemime of the download is an audio type. I'm attaching a patch that does this.

I'm guessing 6.x-2.x was chosen erroneously, as well. since this is not a release?

Pedro Leree’s picture

Version: 6.x-1.x-dev » 6.x-1.0
Assigned: Unassigned » Pedro Leree
Category: feature » bug
Priority: Major » Normal

I had the same exact scenario than the one posted by craigkendall in this thread. Tried everything here (including the patch) without success.

I've used Drupal for a little over 2 years, developed a couple of custom modules, bla bla bla... BUT I'm not a Drupal Ninja, and I'm basically new here in the community, so I'm sorry if I'm posting this in the wrong place, and I'm sorry if I shouldn't be editing the files I did. In the end do, this solution fixed my issue.

So... I added this peace of code to the file \sties\all\modules\ffpc\ffpc_plugin_row_podcast.inc

In row#51 or so, right after another foreach cycle ends:

foreach ($extra as $i => $element) {
    	if($element['key'] == 'enclosure') unset($extra[$i]); //Get rid of any enclosure tag in the rss
    	if($element['key'] == 'category') unset($extra[$i]); //OPTIONAL, to get rid of my taxonomy tags inside the itunes rss
    }