Update XSPF Views to Views 2
davexd - January 5, 2009 - 03:24
| Project: | XSPF Playlist |
| Version: | 6.x-1.0-alpha1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
I've installed:
XSPF Playlist
&
XSPF Playlist CCK
I'm now trying to create a playlist feed in views, but I am not given any XSPF options, anywhere!
Am I missing something?

#1
The views module needs to be updated to Views 2 which has not happened yet. I will try to address this some time soon.
#2
@arthuf, thanks for the update. I certainly don't mean to pressure you, but I have a site to go live in about 3 weeks. I'll look for another solution unless you let me know otherwise. Thanks for your contribution :)
#3
So this module doesn't work with 6.9 + Views 2?
#4
I'm also interested in using this module with 6.10 with views 2...
when will it be updated??
#5
bump!
Any news on this module getting a full D6 release?
Cheers
Zap
#6
subs
#7
I would be interested in this as well.
#8
I have developed some rudimentary, untested views support. Patch attached. To use it, add a 'Feed' display to your view, and set the display style to 'XSPF Playlist'. You also need to set the row style to 'Node XSPF'. I took a lot of the code from the core Node RSS views support and striped out the stuff we don't need. Please give it a test drive.
I must point out that it's had very little testing, and has not been used outside of the way I'm doing things, so don't be surprised if it doesn't do what you expect! (I'm using upload.module to attach media to nodes, media_mover to transcode them and generate thumbnails, and xspf_playlist_node to build playlists from nodes (this views support depends on xspf_playlist_node to get playlist data out of the nodes).
There is no XSPF views filter yet... If xspf_playlist_node_items() is unable to make a playlist from a node, nothing is returned from that node in the feed.
#9
Bad patch... try with this one. I think you'll need to cd into the module directory and use patch -p1 < /path/to/patch.patch. (-p1 not the usual -p0)
#10
Thanks very much for the patch! It's great to have people help out.
I'm of course in the midst of a pretty serious refactor of this module so it is a bit of a moving target. So, I've taken your module and will commit it to CVS today- I'm making a few changes here and there (adding tracks to the XML out for example) and introduced lots of cleanup in the node and thumbnail modules. Check out the dev version and let me know how things are going.
#11
updated patch - the last one output a slightly broken xml...
I now have this xml playlist working and fed to a player :)
http://crescentmedia.kirkdesigns.co.uk/channels/1
I have created a couple of other patches in the last couple of days... I expect your refactoring will render them obsolete, but if not, I'd be great to see them commited too ;)
#12
I do not have shell access, and I tried to manually install this patch but could not figure it out. Could you possibly provide a direct link to each file that was updated?
Thanks
#13
I see that xspf_playlist-views.patch seems to be included in XSPF Playlist 6.x-1.0-alpha2. With alpha2 I'm trying to create a view following instructions in comment #8. When I try to add a feed display, I can set style=XSPF Playlist, however the Row style indicates "Missing style plugin". How can I enable the Node XSPF row style?
Thanks for any advice you can provide.
#14
Same things like #13...
#15
All works fine!
http://drupal.org/node/314097 - click Options, clik Update and warning disappeared. It works for me.