Handle Mopidy local:track:file paths

This commit is contained in:
craig.p.drummond
2014-01-21 19:42:44 +00:00
committed by craig.p.drummond
parent ed4b0007c3
commit 6333aa1ff0
6 changed files with 33 additions and 18 deletions

View File

@@ -109,6 +109,11 @@ QString Song::decodePath(const QString &file)
return file.startsWith(constMopidyLocal) ? QUrl(file.mid(constMopidyLocal.length())).path() : file;
}
QString Song::encodePath(const QString &file)
{
return constMopidyLocal+QString(QUrl::toPercentEncoding(file));
}
static bool useComposerIfSet=false;
bool Song::useComposer()