Le Tuesday 04 September 2007 21:08:49 David Baelde, vous avez écrit : > We could have a playlist_decoder module, to which plugins (stored in > the playlist_formats directory) could register. The plugins would be > independent, and notably the podcast/xspf/smil/.. plugins could be > turned off easily. The playlist_decoder could offer a decoding > function with an optional content-type parameter for forcing the > format (input.http() has such information), but would also be able to > auto-detect the format for an operator like playlist(). The easy way > to do so would be to try plugins one by one until one accepts the > file, which implies that the most structured formats (xml,pls) should > come first. The playlist would probably have to be passed as a string > for generality. The output could simply be a list of (metadata,uri).
This is exactly what has been done with input.http. If Sam or anyone else hasn't done that when I'll have some more spare time, I'll try to do it. Nota: for those who want to do it, the xml module has already a fonction that returns this meta,uri list. As it trigers an exception in case it's the wrong format, it's a good start for implementing this... Romain -- We are reincarnated souls from that time, Living on earth, heat, air and water in dis ya time.
