playlists: Library and executable for working with playlist files.
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]
Flags
Manual Flags
Name | Description | Default |
---|---|---|
maintainer | Enable settings for the package maintainer. | Disabled |
test-doctest | Run the source code through doctest when testing. | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- playlists-0.5.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 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.2 |
---|---|
Change log | CHANGES.md |
Dependencies | attoparsec (>=0.10 && <1.0), base (>=4.6 && <5), bytestring (>=0.10 && <1.0), filepath (>=1.3 && <2.0), optparse-applicative (>=0.10 && <0.16), playlists, text (>=0.11 && <1.3), word8 (>=0.0 && <1.0) [details] |
Tested with | ghc ==7.10.3, ghc ==8.0.2 |
License | BSD-3-Clause |
Copyright | Copyright (c) 2013-2016 Peter Jones |
Author | Peter Jones <pjones@devalot.com> |
Maintainer | Peter Jones <pjones@devalot.com> |
Revised | Revision 1 made by PeterJones at 2019-10-14T15:18:06Z |
Category | Text |
Home page | https://github.com/pjones/playlists |
Source repo | head: git clone https://github.com/pjones/playlists.git |
Uploaded | by PeterJones at 2017-12-01T20:34:50Z |
Distributions | |
Reverse Dependencies | 2 direct, 0 indirect [details] |
Executables | playlist |
Downloads | 5126 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-12-01 [all 1 reports] |