When creating list of streams to allow, decode paths

This commit is contained in:
Craig Drummond
2017-11-03 16:11:52 +00:00
committed by Craig Drummond
parent 08b32733f7
commit ee516aa2fe

View File

@@ -470,9 +470,14 @@ void HttpSocket::cantataStreams(const QList<Song> &songs, bool isUpdate)
foreach (const Song &s, songs) {
DBUG << s.file;
streamIds.insert(s.id, s.file);
if (s.isCantataStream()) {
streamIds.insert(s.id, HttpServer::self()->decodeUrl(s.file).file);
} else {
streamIds.insert(s.id, s.file);
}
newlyAddedFiles.remove(s.file);
}
DBUG << streamIds;
}
void HttpSocket::removedIds(const QSet<qint32> &ids)