mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 14:43:21 -05:00
Change M3U metadata mapping
This commit is contained in:
parent
06701ae6ea
commit
115c35e856
@ -384,7 +384,8 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation, int ur
|
|||||||
if (extinf && extinf->found)
|
if (extinf && extinf->found)
|
||||||
{
|
{
|
||||||
mfi.artist = strdup(extinf->artist);
|
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);
|
ret = scan_metadata_icy(file, &mfi);
|
||||||
}
|
}
|
||||||
|
@ -210,7 +210,7 @@ scan_m3u_playlist(char *file, time_t mtime)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (extinf.found)
|
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);
|
process_media_file(filename, mtime, 0, 0, 1, &extinf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user