Commit b7ed1ed7 authored by Michael Pyne's avatar Michael Pyne
Browse files

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
if(playingFile.coverInfo()->hasCover()) {
QString fallbackFileName = QStandardPaths::locate(QStandardPaths::TempLocation,
const QString fallbackFileName =
QStandardPaths::writableLocation(QStandardPaths::TempLocation) +
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