No release in over a year
Creates an XML Shareable Playlist Format (XSPF) file from plain text.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.8, >= 1.8.27
~> 1.12, >= 1.12.5
 Project Readme

Introducing the playlist_creator gem

Usage:

require 'playlist_creator' 

s = "
title: The Christmas Waltz
location: Disc 3 - 14 - The Christmas Waltz.mp3

title: We Three Kings
location: Disc 3 - 23 - We Three Kings.mp3
"

pc = PlaylistCreator.new s
puts pc.to_xspf
<?xml version="1.0" encoding="utf-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
  <tracklist>
    <track>
      <title>The Christmas Waltz</title>
      <location>Disc 3 - 14 - The Christmas Waltz.mp3</location>
    </track>
    <track>
      <title>We Three Kings</title>
      <location>Disc 3 - 23 - We Three Kings.mp3</location>
    </track>
  </tracklist>
</playlist>

Resources

xspf mp3 playlist creator playlist_creator playlistcreator m3u