@@ -140,7 +140,7 @@ return_song:
|
||||
|
||||
}
|
||||
|
||||
void XSPFParser::Save(const SongList &songs, QIODevice *device, const QDir &dir, const PlaylistSettings::PathType path_type) const {
|
||||
void XSPFParser::Save(const QString &playlist_name, const SongList &songs, QIODevice *device, const QDir &dir, const PlaylistSettings::PathType path_type) const {
|
||||
|
||||
QXmlStreamWriter writer(device);
|
||||
writer.setAutoFormatting(true);
|
||||
@@ -150,6 +150,8 @@ void XSPFParser::Save(const SongList &songs, QIODevice *device, const QDir &dir,
|
||||
writer.writeAttribute("version"_L1, "1"_L1);
|
||||
writer.writeDefaultNamespace("http://xspf.org/ns/0/"_L1);
|
||||
|
||||
writer.writeTextElement("title"_L1, playlist_name);
|
||||
|
||||
Settings s;
|
||||
s.beginGroup(PlaylistSettings::kSettingsGroup);
|
||||
bool write_metadata = s.value(PlaylistSettings::kWriteMetadata, true).toBool();
|
||||
|
||||
Reference in New Issue
Block a user