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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ffpc_media_link.patch | 838 bytes | fredigolo |
Comments
Comment #1
fredigolo commentedHi,
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.
Comment #2
fredigolo commentedSorry, posted the patch with the wrong Status. Corrected now
Comment #3
szb100 commentedPatch fixed the issues I had with file references, so I've changed status to tested.
Comment #4
mohammed76hello.
when will we see this patch commited at least to the development version?
thanks.
Comment #5
mattman commentedThis 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.
Comment #6
mfer commentedSee #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.