playlist v1.0.0 Playlist.M3U

Parses M3U files.

Summary

Functions

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

Types

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

Functions

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

Takes a string representing a M3U 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.