From 0546ebb63d1791825a2080532e16ffff930acd41 Mon Sep 17 00:00:00 2001 From: zmike Date: Thu, 6 Feb 2014 01:13:43 -0500 Subject: [PATCH] update lyrics on song change if visible --- src/bin/empc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/empc.c b/src/bin/empc.c index 8acd595..836d6a9 100644 --- a/src/bin/empc.c +++ b/src/bin/empc.c @@ -182,6 +182,9 @@ songid_update(int songid) elm_genlist_item_show(it, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); elm_object_item_signal_emit(it, "empc,state,playing", "empc"); elm_genlist_item_fields_update(it, EMPC_PLAYLIST_TEXT_TIME, ELM_GENLIST_ITEM_FIELD_TEXT); + elm_object_part_content_set(layout, EMPC_BASE_SWALLOW_LYRICS, NULL); + if (lyrics_visible) + metadata_lyrics_fetch(NULL, layout, empd_song_artist, empd_song_title, EINA_FALSE); so = elm_object_item_data_get(it); if ((!itp) || (so->album != sop->album) || (so->artist != sop->artist)) {