From e63605b54f3102f85d007b23e936e458506bc223 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 23 Nov 2013 13:10:11 +0100 Subject: m3u: fixed m3uinf regression --- plugins/m3u/m3u.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/m3u') diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c index 3b0988c3..e874776d 100644 --- a/plugins/m3u/m3u.c +++ b/plugins/m3u/m3u.c @@ -503,11 +503,12 @@ m3uplug_save_m3u (const char *fname, DB_playItem_t *first, DB_playItem_t *last) int has_title = deadbeef->pl_meta_exists (it, "title"); if (has_artist && has_title) { deadbeef->pl_format_title (it, -1, s, sizeof (s), -1, "%a - %t"); + fprintf (fp, "#EXTINF:%d,%s\n", dur, s); } else if (has_title) { deadbeef->pl_format_title (it, -1, s, sizeof (s), -1, "%t"); + fprintf (fp, "#EXTINF:%d,%s\n", dur, s); } - fprintf (fp, "#EXTINF:%d,%s\n", dur, s); deadbeef->pl_lock (); { const char *fname = deadbeef->pl_find_meta (it, ":URI"); -- cgit v1.2.3