From 3df1f1bed9b3d2ccda55b7c375b8680ceeecc4e0 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 11 Oct 2010 15:20:53 +0000 Subject: [PATCH] Fix parsing of dos line endings in M3U. Fixes issue #863 --- src/playlistparsers/m3uparser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/playlistparsers/m3uparser.cpp b/src/playlistparsers/m3uparser.cpp index cf8975918..1e76c7d68 100644 --- a/src/playlistparsers/m3uparser.cpp +++ b/src/playlistparsers/m3uparser.cpp @@ -32,6 +32,7 @@ SongList M3UParser::Load(QIODevice* device, const QDir& dir) const { QString data = QString::fromUtf8(device->readAll()); data.replace('\r', '\n'); + data.replace("\n\n", "\n"); QByteArray bytes = data.toUtf8(); QBuffer buffer(&bytes); buffer.open(QIODevice::ReadOnly);