m3u 1.0.2 copy "m3u: ^1.0.2" to clipboard
m3u: ^1.0.2 copied to clipboard

outdated

Simple Dart tool to parse M3U and M3U_Plus files from a string or document string.

M3U format parser #

Simple parser for M3U and M3U_Plus files.

How to use #

Currently the parser only supports full file parsing.

import 'package:m3u/m3u.dart';

main() async {
  String playlistContent = <load_playlist>;
  final playlist = await M3uParser.parse(file);
  
  // Organized categories
  final categories =
      sortedCategories(entries: listOfTracks, attributeName: 'group-title');
  print(categories);
}

Missing features #

  • Parse from a stream of data instead of a string
  • Parse the number next to the EXTINF Ex: #EXTINF:-1
  • Parse info from the header
  • Parse start track info
  • Parse non string information ex: aspect-ratio=4:3
12
likes
40
pub points
59%
popularity

Publisher

unverified uploader

Simple Dart tool to parse M3U and M3U_Plus files from a string or document string.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on m3u