Skip to content

Commit

Permalink
Fix: Show title for last played song in album view
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Nov 19, 2024
1 parent 8999bfc commit 55fc313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is a small bug fix release.

- Fix: Parse hh:mm:ss timestamps #1370
- Fix: Pause streams with known duration #1371
- Fix: Show title for last played song in album view

***

Expand Down
2 changes: 1 addition & 1 deletion src/mympd_api/browse.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ sds mympd_api_browse_album_detail(struct t_mympd_state *mympd_state, struct t_pa
buffer = sdscat(buffer, ",\"lastPlayedSong\":{");
buffer = tojson_time(buffer, "time", last_played_max, true);
buffer = tojson_uint(buffer, "pos", last_played_song_pos, true);
buffer = tojson_sds(buffer, "title", last_played_song_uri, true);
buffer = tojson_sds(buffer, "title", last_played_song_title, true);
buffer = tojson_sds(buffer, "uri", last_played_song_uri, false);
buffer = sdscatlen(buffer, "}", 1);
if (partition_state->mpd_state->feat.stickers == true) {
Expand Down

0 comments on commit 55fc313

Please sign in to comment.