From ee516aa2fef810689cf2339d7d15a7696ea86f4e Mon Sep 17 00:00:00 2001 From: Craig Drummond Date: Fri, 3 Nov 2017 16:11:52 +0000 Subject: [PATCH] When creating list of streams to allow, decode paths --- http/httpsocket.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/http/httpsocket.cpp b/http/httpsocket.cpp index 6c5bd51aa..353831523 100644 --- a/http/httpsocket.cpp +++ b/http/httpsocket.cpp @@ -470,9 +470,14 @@ void HttpSocket::cantataStreams(const QList &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 &ids)