Skip to content

Commit 3ac8a30

Browse files
author
Carlos Pérez
committed
Now the radio includes the song it's based on
1 parent dd7d0f2 commit 3ac8a30

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

SonicLair.Cli/changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# New release!
22

3-
Now the app scrobbles every song you play.
4-
Some fixes for the UI.
3+
## Bugfix
4+
Now the app correctly includes the original song on the radio playlist.

SonicLair.Lib/Services/MusicPlayerService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ public async Task PlayRadio(string id)
338338
try
339339
{
340340
var songs = await _client.GetSimilarSongs(id);
341-
_ = songs.Prepend(await _client.GetSong(id));
341+
var song = await _client.GetSong(id);
342+
songs = songs.Prepend(song).ToList();
342343
_playlist = new Playlist(
343344
"",
344345
$"Radio based on {songs[0].Title}",

0 commit comments

Comments
 (0)