Download & Extend

XSPF 'creator' is set to node author rather than audio file artist

Project:XSPF Playlist
Version:5.x-1.16
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I think it looks a little odd to have the XSPF track creator set to $node->name, which is the drupal username that's the author of the node.
Looking at http://www.xspf.org/quickstart/, it suggests that creator in playlist could be the node author, whereas creator in track should be the artist. I don't know if this can be pulled from the MP3 file in case of nodes with file attachments or CCK audio fields, but with audio module nodes it's certainly possible.

Comments

#1

Yeah, you have a good point. I set it this way by default as most people don't have author/artist info for their files. However, with the new XSPF setup you can actually modify this with:

<?php
function MODULE_xspf_playlist_item_alter (&$item, $node, $url, $thumb, $meta) {
  
// your creator data
  
_xspf_playlist_item_set_value($item, 'creator', $value);
?>

Which I think should address your concerns, no?

nobody click here