Remove query string that may include auth info.

This commit is contained in:
Jim Broadus 2020-02-15 16:34:00 -08:00 committed by John Maguire
parent 5983ecfac0
commit 9116dfde7d
1 changed files with 3 additions and 1 deletions

View File

@ -132,8 +132,10 @@ void Player::HandleLoadResult(const UrlHandler::LoadResult& result) {
break;
case UrlHandler::LoadResult::TrackAvailable: {
// The media URL may contain an auth token.
qLog(Debug) << "URL handler for" << result.original_url_ << "returned"
<< result.media_url_;
<< result.media_url_.toString(QUrl::RemoveQuery)
<< "(query removed)";
// If there was no length info in song's metadata, use the one provided by
// URL handler, if there is one