diff --git a/lib/src/m3u_parser.dart b/lib/src/m3u_parser.dart index 587e29c..b5e9dc6 100644 --- a/lib/src/m3u_parser.dart +++ b/lib/src/m3u_parser.dart @@ -41,7 +41,11 @@ class M3uParser { /// /// Can [throws] [InvalidFormatException] if the file is not supported. Future> _parse(String source) async { - LineSplitter.split(source).forEach(_parseLine); + LineSplitter.split(source).forEach((line) { + if (line.isNotEmpty) { + _parseLine(line); + } + }); return _playlist; }