pls 1.0.1 copy "pls: ^1.0.1" to clipboard
pls: ^1.0.1 copied to clipboard

outdated

pls is a lightweight library for parsing pls documents from document string.

pls #

pls is a lightweight library for parsing .pls files.

Installation #

Import the library into your Dart code using:

import 'pls/pls.dart';

Usage #


 final String fileString = """[playlist]  
numberofentries=2
File1=http://exemple/stream/1  
Title1=EXEMPLE | FM  
Length1=-1
File2=http://exemple/stream/2
Title1=EXEMPLE2 | FM
Length1=-1
Version=2  
""";

  final plsParser = PlsPlaylist.parse(fileString);

  final List<PlsEntry> plsEntries = plsParser.entries;

  for (PlsEntry plsEntry in plsEntries!) {
      // url: http://example.mp3/stream/1, title:  example | FM, length: '-1'
      print("url: ${plsEntry.url}, title: ${plsEntry.title}, length: ${plsEntry.length}");
    }

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License #

MIT

7
likes
0
points
740
downloads

Publisher

verified publisherandromo.com

Weekly Downloads

pls is a lightweight library for parsing pls documents from document string.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pls