package

github.com/tijn/pls.cr

0.2.0 / published Jan 2, 2018 / repository

A small library to read PLS files (for playlists)

pls

A small library to parse PLS playlists

A PLS playlist is simply an INI file with a predefined set of keys.

Installation

Add this to your application's shard.yml:

dependencies:
  pls:
    github: tijn/pls.cr

Usage

require "pls"

playlist = PLS::Playlist.parse(File.read("name_of_file.pls"))
playlist.entries.each do |entry|
  puts entry.file
end

Development

You can clone it and improve it I guess ...

Contributing

  1. Fork it ( https://github.com/tijn/pls/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • tijn Tijn Schuurmans - creator, maintainer

API