The playlists package

[Tags: bsd3, library, program]

Playlists is a library for working with media playlist files. The original motivation for the library was extracting URLs for streaming radio stations that use PLS and M3U playlist files.

The package also includes an executable that can dump the URLs from a playlist file and convert between playlist file formats.

Example:

 import qualified Data.ByteString as BS
 import Text.Playlist

 readPlaylist :: Format -> IO Playlist
 readPlaylist fmt = do
   content <- BS.getContents
   case parsePlaylist fmt content of
     Left err -> fail $ "failed to parse playlist on stdin: " ++ err
     Right x  -> return x

Playlist Executable Examples:

 $ playlist urls --format PLS < somefile.pls

 $ playlist convert --from PLS --to M3U < somefile.pls

Properties

Versions0.1.0.0, 0.2.0.0
Dependenciesattoparsec (>=0.10 && <1.0), base (>=4.6 && <5), bytestring (>=0.10 && <1.0), filepath (>=1.3 && <2.0), optparse-applicative (>=0.5 && <1.0), playlists, text (>=0.11 && <1.2), word8 (>=0.0 && <1.0)
LicenseBSD3
CopyrightCopyright (c) 2013,2014 Peter Jones <pjones@devalot.com>
AuthorPeter Jones <pjones@devalot.com>
MaintainerPeter Jones <pjones@devalot.com>
CategoryText
Home pagehttps://github.com/pjones/playlists
Source repositoryhead: git clone https://github.com/pjones/playlists.git
Executablesplaylist
Upload dateFri Apr 18 23:32:49 UTC 2014
Uploaded byPeterJones
Downloads133 total (11 in last 30 days)

Modules

[Index]

Flags

NameDescriptionDefault
maintainerEnable settings for the package maintainer.Disabled
test-hlintEnabled
test-doctestEnabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees