Dont replace metadata when loading playlists
This commit is contained in:
@@ -121,6 +121,7 @@ bool M3UParser::ParseMetadata(const QString &line, M3UParser::Metadata *metadata
|
||||
metadata->artist = list[0].trimmed();
|
||||
metadata->title = list[1].trimmed();
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
void M3UParser::Save(const SongList &songs, QIODevice *device, const QDir &dir, Playlist::Path path_type) const {
|
||||
@@ -146,6 +147,7 @@ void M3UParser::Save(const SongList &songs, QIODevice *device, const QDir &dir,
|
||||
device->write(URLOrFilename(song.url(), dir, path_type).toUtf8());
|
||||
device->write("\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool M3UParser::TryMagic(const QByteArray &data) const {
|
||||
|
||||
Reference in New Issue
Block a user