Search packages, repositories and app categories

GitHub repositorybmoliveira/m3u-parse-utils

m3u-parse-utils

Dart library to parse m3u and m3u_plus files on Dart

m3u-parse-utils project cover
Stars
14
Forks
13
Last push (UTC)
Jul 19, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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 info from the header
  • [ ] Parse start track info
  • [ ] Parse non string information ex: aspect-ratio=4:3
Bruno Oliveira GitHub avatar
GitHub author

Bruno Oliveira ↗

Mobile developer @Remoteoss

Remote.comLisbonOfficial website ↗
LanguagesDart

Categories

Packages published by this repository

Dependencies used

Dependency list 2 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗