mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-14 18:35:16 +01:00
parent
35988411e1
commit
3df1f1bed9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user