1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-28 08:09:40 +01:00

Update stream url to avoid requesting it twice

This commit is contained in:
Jonas Kvinge 2020-09-29 23:03:50 +02:00
parent 938ee20f1f
commit b81cfa8acb

View File

@ -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;
}
}