From b81cfa8acb244a6cfd1b0005b5fa3ab53886ea52 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 29 Sep 2020 23:03:50 +0200 Subject: [PATCH] Update stream url to avoid requesting it twice --- src/core/player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/player.cpp b/src/core/player.cpp index 9d8d30a79..2afc6b394 100644 --- a/src/core/player.cpp +++ b/src/core/player.cpp @@ -748,7 +748,11 @@ void Player::TrackAboutToEnd() { loading_async_ << url; return; case UrlHandler::LoadResult::TrackAvailable: + qLog(Debug) << "URL handler for" << result.original_url_ << "returned" << result.stream_url_; url = result.stream_url_; + Song song = next_item->Metadata(); + song.set_stream_url(url); + next_item->SetTemporaryMetadata(song); break; } }