https://github.com/bmoliveira/m3u-parse-utils
Dart library to parse m3u and m3u_plus files on Dart
https://github.com/bmoliveira/m3u-parse-utils
dart m3u-parser
Last synced: 9 months ago
JSON representation
Dart library to parse m3u and m3u_plus files on Dart
- Host: GitHub
- URL: https://github.com/bmoliveira/m3u-parse-utils
- Owner: bmoliveira
- License: mit
- Created: 2019-03-11T10:50:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T12:34:38.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T14:04:13.655Z (about 1 year ago)
- Topics: dart, m3u-parser
- Language: Dart
- Size: 217 KB
- Stars: 13
- Watchers: 1
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# M3U format parser
Simple parser for [M3U](https://en.wikipedia.org/wiki/M3U) and
[M3U_Plus](https://en.wikipedia.org/wiki/M3U) files.
## How to use
Currently the parser only supports full file parsing.
```dart
import 'package:m3u/m3u.dart';
main() async {
String playlistContent = ;
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`