Fix writing of album art paths when saving XSPF files
This commit is contained in:
parent
5f6dcbe4b7
commit
292fdd3e7f
|
@ -130,9 +130,7 @@ void XSPFParser::Save(const SongList &songs, QIODevice *device, const QDir &dir)
|
||||||
// Ignore images that are in our resource bundle.
|
// Ignore images that are in our resource bundle.
|
||||||
if (!art.startsWith(":") && !art.isEmpty()) {
|
if (!art.startsWith(":") && !art.isEmpty()) {
|
||||||
// Convert local files to URLs.
|
// Convert local files to URLs.
|
||||||
if (!art.contains(QRegExp("^\\w+://"))) {
|
art = MakeRelativeTo(art, dir);
|
||||||
art = QUrl::fromLocalFile(MakeRelativeTo(art, dir)).toString();
|
|
||||||
}
|
|
||||||
writer.writeTextElement("image", art);
|
writer.writeTextElement("image", art);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue