From ea402d2bc0a42e1d38ec2a625071340c068ec2c2 Mon Sep 17 00:00:00 2001 From: Craig Drummond Date: Mon, 30 Apr 2018 22:18:32 +0100 Subject: [PATCH] Fix playback of local non-MPD files under Windows. Issue #1250 --- ChangeLog | 1 + http/httpserver.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index c123d1e40..d496fceee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ 7. For windows, when adding local files (served via internal HTTP server) add the real file path as a query item. 8. Use smaller text for help text in Tweaks section of preferences dialog. +9. Fix playback of local non-MPD files under Windows. 2.3.0 ----- diff --git a/http/httpserver.cpp b/http/httpserver.cpp index d23fcaf36..3b4462107 100644 --- a/http/httpserver.cpp +++ b/http/httpserver.cpp @@ -172,6 +172,7 @@ QByteArray HttpServer::encodeUrl(const Song &s) #ifdef Q_OS_WIN // Use a query item, as s.file might have a driver specifier query.addQueryItem("file", s.file); + url.setPath("/"+Utils::getFile(s.file)); #else url.setPath(s.file); #endif