1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00

Fix parsing of dos line endings in M3U.

Fixes issue #863
This commit is contained in:
John Maguire 2010-10-11 15:20:53 +00:00
parent 35988411e1
commit 3df1f1bed9

View File

@ -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);