mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
Change M3U metadata mapping
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user