What does ItemKey refer to in each tag type? #410
-
Hello! Thanks for this great crate. Recently I found it really convenient to get lyric by code: let tag = tagged_file.primary_tag().or(tagged_file.first_tag())?;
return Some(tag.get(&ItemKey::Lyrics)?.value().text()?.to_string()); Because I can get lyric from music in different file format, such as mp3, flac, ogg, opus, wav, m4a, ... Thus, I wonder what does ItemKey refer to in each tag type. Is it like this? Id3v2: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! All of the
|
Beta Was this translation helpful? Give feedback.
Hello!
All of the
ItemKey
mappings are defined here: https://github.com/Serial-ATA/lofty-rs/blob/main/lofty/src/tag/item.rs.ItemKey::Lyrics
is for unsynced lyrics, so they map to:Lyrics
USLT
©lyr
LYRICS