From 115c35e85687aaacb7631e4a660687bce625da30 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 16 Oct 2013 22:33:01 +0200 Subject: [PATCH] Change M3U metadata mapping --- src/filescanner.c | 3 ++- src/filescanner_m3u.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filescanner.c b/src/filescanner.c index ff41ca11..db2fde84 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -384,7 +384,8 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation, int ur if (extinf && extinf->found) { mfi.artist = strdup(extinf->artist); - mfi.title = strdup(extinf->title); + mfi.title = strdup(extinf->artist); + mfi.album = strdup(extinf->title); } ret = scan_metadata_icy(file, &mfi); } diff --git a/src/filescanner_m3u.c b/src/filescanner_m3u.c index af1c0b22..76c18e7a 100644 --- a/src/filescanner_m3u.c +++ b/src/filescanner_m3u.c @@ -210,7 +210,7 @@ scan_m3u_playlist(char *file, time_t mtime) } if (extinf.found) - DPRINTF(E_INFO, L_SCAN, "Playlist has EXTINF, artist is %s, title is %s\n", extinf.artist, extinf.title); + DPRINTF(E_INFO, L_SCAN, "Playlist has EXTINF metadata, artist is '%s', title is '%s'\n", extinf.artist, extinf.title); process_media_file(filename, mtime, 0, 0, 1, &extinf); }