From: Pau Garcia i Quiles Date: 2006-10-18T10:07:56+09:00 Subject: [ANN] XSPF for Ruby --nextPart6641285.UhaGjqaLcJ Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, URI http://www.elpauer.org/xspf/ SYNOPSIS XSPF for Ruby is a pure-Ruby XML Shareable Playlist Format parser in Ruby. HISTORY Current version is 0.2, the first public version. STATUS Parser mostly complete and working for 95% of uses.=20 Current limitations:=20 - Only read, not write, XSPF files - For "link" and "extension" elements, only the first one is found - The "attribution" element is not parsed (the XML content is returned) - The "extension" element is not parsed (the XML content is returned) EXAMPLE require 'xspf' f =3D File.new("playlist.xspf") x =3D XSPF.new(f) pl =3D XSPF::Playlist.new(x) tl =3D XSPF::Tracklist.new(pl) puts "XML version: #{x.version}" puts "XML encoding: #{ x.encoding}" puts "XSPF version: #{pl.version}" puts "Namespace: #{pl.xmlns}" puts "Playlist title: #{pl.title}" puts "Playlist creator: #{pl.creator}" puts "Playlist annotation: #{pl.annotation}" puts "Playlist info: #{pl.info}" puts "Playlist identifier: #{pl.identifier}" puts "Playlist attribution: #{pl.attribution}" puts "Tracklist: #{pl.tracklist}" tl.tracks.each do |t| puts "Track identifier: #{t.identifier}" puts "Track title: #{t.title}" puts "Track creator: #{t.creator}" puts "Track duration: #{t.duration}" puts "Track metainformation: link=3D#{t.meta_rel}=20 content=3D#{t.meta_content}" end ROADMAP 0.3: Export XSPF to M3U, HTML, SMIL and SoundBox via XSLT transformation 0.4: Generator: create XSPF documents WHY XSPF for Ruby is a side project born under the umbrella of spectaKle, the= =20 open source digital signage suite written in Ruby, QtRuby/Korundum and Rail= s.=20 =2D-=20 Pau Garcia i Quiles http://www.elpauer.org (Due to the amount of work, I usually need 10 days to answer) --nextPart6641285.UhaGjqaLcJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBFNX5m/DzYv9iGJzsRAsPnAJ4nfPDiRANzCZu3U4py1nfAo5VnpwCfeNxz /Z4Fuy9kAUuyuoF0DZfjr/4= =S4FD -----END PGP SIGNATURE----- --nextPart6641285.UhaGjqaLcJ--