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'];

CommentFileSizeAuthor
cckfilefield_i18n.patch1.32 KBeikes

Comments

eikes’s picture

PS: i haven't tested this on with a clean install and no i18n module, but it should work...

ignasiga’s picture

I 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.

JayDeeFunk’s picture

Thank you!!!!