|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
XSPFPHP
Woops, let's try that again. Duhh.
I'd like this included on your links page if possible. ------------------------------------------------------ http://xspfphp.sourceforge.net/ XSPF.PHP generates a Valid XSPF playlist from MP3 file tags. Useful for custom Myspace or custom embedded mp3 players. *Requires a web server running PHP 5.2 or later. *Caching requires a MySql database and create/delete table permissions *Includes an .ini controlled AutoEmbed script *Supports individual directory inclusion, sorting, debug, html stylesheet, multiple playlists and more... _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPTom wrote:
> Woops, let's try that again. Duhh. > I'd like this included on your links page if possible. Added, online in about an hour. https://trac.xiph.org/changeset/15806 > http://xspfphp.sourceforge.net/ > > XSPF.PHP generates a Valid XSPF playlist from MP3 file tags. > Useful for custom Myspace or custom embedded mp3 players. > *Requires a web /server/ running PHP 5.2 or later. > *Caching requires a MySql database and create/delete table permissions > *Includes an .ini controlled AutoEmbed script > *Supports individual directory inclusion, sorting, debug, html > stylesheet, multiple playlists and more... _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPJust a minor thing: Please consider adding more newlines to the XSPF
files produced. Human readers will thank you. Sebastian _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPSebastian Pipping wrote:
> Just a minor thing: Please consider adding more newlines to the XSPF > files produced. Human readers will thank you. > > > > Sebastian > You mean in the raw output? It's generated by PHP SimpleXML. I don't think it's possible to add line feeds between elements since it's all done using intrinsic php functions. This is how it's output: print header("Content-Type: text/xml") . $xmlplaylist->asXML(); I switched to this method because it's faster. When viewing in a browser the playlist is transformed by the supplied stylesheet (xspf.xsl). It could use some work but it shows images and provides a browser link for testing. I'll take some time and see if I can get it looking better. When you use View-> Source in a browser you're seeing the raw xml and that's what looks ugly. To view the playlist using the familiar document tree view, disable $html in the settings file. Line 12 in xspf.settings.php $html = false; // Attach html stylesheet for viewing in browser This disables the stylesheet so the browser displays it like in this link, which is what you're probably used to. http://www.trbailey.net/xspf/xspf.php Does this help or do you still think there is an issue? -Tom > _______________________________________________ > Playlist mailing list > Playlist@... > http://lists.musicbrainz.org/mailman/listinfo/playlist > > _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPTom wrote:
> This disables the stylesheet so the browser displays it like in this > link, which is what you're probably used to. > http://www.trbailey.net/xspf/xspf.php > > Does this help or do you still think there is an issue? Seen that and it's nice but it doesn't solve the issue. Run it through the validator, look at the output [1] and you'll see through my eyes how I came suggesting line breaks :-) Sebastian [1] http://validator.xspf.org/?url=http%3A//www.trbailey.net/xspf/xspf.php _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPYes, I've noticed the lack of line endings and it's ugly, especially if you want to save and edit the output.Tom wrote:This disables the stylesheet so the browser displays it like in this link, which is what you're probably used to. http://www.trbailey.net/xspf/xspf.php Does this help or do you still think there is an issue?Seen that and it's nice but it doesn't solve the issue. Run it through the validator, look at the output [1] and you'll see through my eyes how I came suggesting line breaks :-) Try this one. http://www.trbailey.net/xspf/xspf.php That's better but the DOM formatting tosses my stylesheet for some reason. I could add an extra output choice; html, text, debug or none. -Tom Sebastian [1] http://validator.xspf.org/?url=http%3A//www.trbailey.net/xspf/xspf.php _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPHello Tom,
You ended up not creating your own tag reader. Would you like to try that but with Vorbis files? Tags are UTF-8 plain text, and there's a package in Pear that checks Vorbis Comments if you would like to study an existing source. I for one would like your script to parse Vorbis files, too. -Ivo _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPIvo Emanuel Gonçalves wrote:
> Hello Tom, > > You ended up not creating your own tag reader. Would you like to try > that but with Vorbis files? Tags are UTF-8 plain text, and there's a > package in Pear that checks Vorbis Comments if you would like to study > an existing source. > > I for one would like your script to parse Vorbis files, too. > It should support them already but I don't have any here to test. You can add ogg to the file regex and see if it works. In xspf.settings.php line 58, change to read: $ft = "mp3$|ogg$"; // scan for mp3 and ogg files Let me know how to works. -Tom > -Ivo > > _______________________________________________ > Playlist mailing list > Playlist@... > http://lists.musicbrainz.org/mailman/listinfo/playlist > > _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
|
|
Re: XSPFPHPTom wrote:
> Yes, I've noticed the lack of line endings and it's ugly, especially if > you want to save and edit the output. > Try this one. http://www.trbailey.net/xspf/xspf.php Much better. Thanks. Sebastian _______________________________________________ Playlist mailing list Playlist@... http://lists.musicbrainz.org/mailman/listinfo/playlist |
| Free embeddable forum powered by Nabble | Forum Help |