Hi all,

I tried to set up a podcast with ffpc 6x-0.7, View 2.3 & filefield 6.x-3.0-alpha7, in a multilingual site, but I believe the URL to the mp3 files in the podcast are being incorrectly generated.

A new filefield-enabled content type was created for the podcast items, and the mp3 files are uploaded to sites/default/files/podcast. Each podcast item can be accessed with any language prefix, by using the URL syntax http://mysite/language_prefix/content/XX URLs (where XX is the node name). However the link to the mp3 file is always http://mysite/sites/default/files/podcast/yyy.mp3 (where yyy is the name of the mp3 file), i.e, the URL does not include the language prefix.

When I create the podcast with ffpc, however, the items in the feed point to http://mysite/language_prefix/sites/default/files/podcast/yyy.mp3 files, which the server cannot find.

Thanks,

Fernando

CommentFileSizeAuthor
#1 ffpc_media_link.patch838 bytesfredigolo

Comments

fredigolo’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new838 bytes

Hi,

I examined the code and observed that the URLs for the mp3 files in the Podcasts are being generated by the url() function and not by the file_create_url() one (used by the filefield module itself).

The attached patch correct this behaviour.

fredigolo’s picture

Status: Patch (to be ported) » Needs review

Sorry, posted the patch with the wrong Status. Corrected now

szb100’s picture

Status: Needs review » Reviewed & tested by the community

Patch fixed the issues I had with file references, so I've changed status to tested.

mohammed76’s picture

hello.

when will we see this patch commited at least to the development version?

thanks.

mattman’s picture

This issue is a duplicate of http://drupal.org/node/328649 Enclosure URL path not working for private files?, which I reopened because HEAD contains the file_create_url() on one of the file URL's but not the other.

This issue can be merged into that one.

mfer’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

See #365747: Bug: ?q= added to feed enclosure URI

Marking this as a dupe since we only need to track it in one place. I'll be working on it this week and hope to have a new release out soon.