I just discovered, that the location field in the generated xml file is set incorrectly when used in combination with the cck filefield for getting the file from and the i18n module which adds a leading language abbreviation to the url. Example:
<location>
http://www.example.com/en/files/videos/somevideo.flv
</location>where it should say
http://www.example.com/files/videos/somevideo.flv
How to fix it? Here, also I attached a patch.
in xpsf_playlist.module change (line ~ 550)
$field = $node->{$fieldname}[0]['filepath'] ? url($node->{$fieldname}[0]['filepath'], NULL, NULL, TRUE) : $node->{$fieldname}[0]['value'];
to
$field = $node->{$fieldname}[0]['filepath'] ? xspf_playlist_url($node->{$fieldname}[0]['filepath'], NULL, NULL, TRUE) : $node->{$fieldname}[0]['value'];
| Comment | File | Size | Author |
|---|---|---|---|
| cckfilefield_i18n.patch | 1.32 KB | eikes |
Comments
Comment #1
eikes commentedPS: i haven't tested this on with a clean install and no i18n module, but it should work...
Comment #2
ignasiga commentedI had the same problem, and this code worked and fully resolved the problem.
I hope that this patch gets into the code of the next release.
Thanks.
Comment #3
JayDeeFunk commentedThank you!!!!