playlist v1.0.0 Playlist.PLS

Parses PLS files.

Summary

Functions

Takes a string representing a PLS file and returns a success tuple with a list of maps, each representing a track in the file

Types

track()
track :: %{length: String.t, title: String.t, uri: String.t}

Functions

parse(string)
parse(String.t) :: {:ok, [track]} | {:error, String.t}

Takes a string representing a PLS file and returns a success tuple with a list of maps, each representing a track in the file.

Any error during the parsing will result in a {:error, reason} tuple.