playlists: Library and executable for working with playlist files.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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
[Skip to Readme]
Properties
Versions | 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.4.1.0, 0.5.0.0, 0.5.1, 0.5.1, 0.5.2 |
---|---|
Change log | CHANGES.md |
Dependencies | attoparsec (>=0.10 && <0.14), base (>=4.6 && <5), bytestring (>=0.10 && <0.12), filepath (>=1.3 && <1.5), optparse-applicative (>=0.10 && <0.17), playlists, text (>=0.11 && <1.3), word8 (>=0.0 && <0.2) [details] |
License | BSD-3-Clause |
Copyright | Copyright (c) 2013-2020 Peter Jones |
Author | Peter Jones <pjones@devalot.com> |
Maintainer | Peter Jones <pjones@devalot.com> |
Category | Text |
Home page | https://github.com/pjones/playlists |
Bug tracker | https://github.com/pjones/playlists/issues |
Source repo | head: git clone https://github.com/pjones/playlists.git |
Uploaded | by PeterJones at 2020-10-29T22:45:38Z |
Modules
[Index] [Quick Jump]
- Text
Downloads
- playlists-0.5.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees