summaryrefslogtreecommitdiff
path: root/plugins/m3u
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-23 13:10:11 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-23 13:10:11 +0100
commite63605b54f3102f85d007b23e936e458506bc223 (patch)
treec0d2e95476e14f54c509098965c4c35c9c9eecdc /plugins/m3u
parent99564d3f492b91ea01790c45b8c1ade985c775d9 (diff)
m3u: fixed m3uinf regression
Diffstat (limited to 'plugins/m3u')
-rw-r--r--plugins/m3u/m3u.c3
1 files changed, 2 insertions, 1 deletions
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");