[ANN] XSPF for Ruby

  • Thread starter Pau Garcia i Quiles
  • Start date
P

Pau Garcia i Quiles

--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--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top