Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b7ed1ed7 authored by Michael Pyne's avatar Michael Pyne

mpris2: Re-add cover info to MPRIS metadata for tracks with embedded art.

Was broken when porting away from KStandardDirs.  The code to extract
embedded cover art needs to know the name to extract the art into, but
QStandardPaths::locate() wouldn't return that name unless it already
existed somehow.
parent 90f1694a
......@@ -217,8 +217,9 @@ QVariantMap MediaPlayer2Player::Metadata() const
QUrl::fromLocalFile(playingFile.absFilePath()).toEncoded());
if(playingFile.coverInfo()->hasCover()) {
QString fallbackFileName = QStandardPaths::locate(QStandardPaths::TempLocation,
QString("juk-cover-%1.png").arg(item->trackId()));
const QString fallbackFileName =
QStandardPaths::writableLocation(QStandardPaths::TempLocation) +
QString("juk-cover-%1.png").arg(item->trackId());
QString path = fallbackFileName;
if(!QFile::exists(path)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment