diff options
author | 2010-04-04 15:58:18 +0200 | |
---|---|---|
committer | 2010-04-04 15:58:18 +0200 | |
commit | 251bfdb90e02170019366eacf8eb295350a4bdc4 (patch) | |
tree | 04a6672c9409e90047f80600eb659863d0b431da /plugins/gtkui/plcommon.c | |
parent | 3e353f8d1a41585b4715eaf0dfeed057b8a23b15 (diff) |
added fetching artwork from id3v2 tags
Diffstat (limited to 'plugins/gtkui/plcommon.c')
-rw-r--r-- | plugins/gtkui/plcommon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c index 006234c8..79ca1994 100644 --- a/plugins/gtkui/plcommon.c +++ b/plugins/gtkui/plcommon.c @@ -109,6 +109,9 @@ void draw_column_data (DdbListview *listview, GdkDrawable *drawable, DdbListview // gdk_draw_rectangle (drawable, GTK_WIDGET (listview)->style->white_gc, TRUE, x, y, width, h); const char *album = deadbeef->pl_find_meta (group_it, "album"); const char *artist = deadbeef->pl_find_meta (group_it, "artist"); + if (!album || !*album) { + album = deadbeef->pl_find_meta (group_it, "title"); + } GdkPixbuf *pixbuf = get_cover_art (((DB_playItem_t *)group_it)->fname, artist, album, art_width); if (pixbuf) { int pw = gdk_pixbuf_get_width (pixbuf); |