Change M3U metadata mapping

This commit is contained in:
ejurgensen 2013-10-16 22:33:01 +02:00
parent 06701ae6ea
commit 115c35e856
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}