-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Reproducer
I tried this code:
let mut tag = Id3v2Tag::default();
tag.set_artist(artists.join("\0")); // ["Artist1", "Artist2"]
let mut tag: Tag = tag.into();
tag.save_to_path(&path).unwrap();
// re-read
let tagged_file = read_from_path(&path).unwrap();
let artists = tagged_file.primary_tag().unwrap().
.get_strings(&ItemKey::TrackArtist)
.map(std::string::ToString::to_string)
.collect_vec(); // ["Artists2"]while this code works:
let mut tag = Id3v2Tag::default();
tag.set_artist(artists.join("\0")); // ["Artist1", "Artist2"]
tag.save_to_path(&path).unwrap();
// re-read
let tagged_file = read_from_path(&path).unwrap();
let artists = tagged_file.primary_tag().unwrap().
.get_strings(&ItemKey::TrackArtist)
.map(std::string::ToString::to_string)
.collect_vec(); // ["Artist1", "Artist2"]And it seems that this only happens with mp3. I can write multiple artists with vorbis comment on a flac file.
Summary
When converting to generic Tag from Id3v2Tag, multiple artitsts are not preserved.
Expected behavior
When converting to generic Tag from Id3v2Tag, multiple artitsts are preserved.
Assets
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working