Active
Project:
XSPF Playlist
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2010 at 00:10 UTC
Updated:
21 Jan 2010 at 00:10 UTC
I'm looking at the xspf_playlist_node_build_file_item() method and it accepts a $type parameter, but I don't see that parameter actually being passed in from any of the methods which call xspf_playlist_node_build_file_item(). I have a CCK File Field which is limited to image types, and it does not show up with the "duration" node in the generated xspf playlist.
Should I explicitly add the type parameter to one of the cck handlers which call xspf_playlist_node_build_file_item()? Right now, I've patched the xspf_playlist_node_build_file_item() method to "auto-detect" the file extension if $type == null. (Maybe not the best approach, IMHO, but see attached.)