Zeugma440 / atldotnet

Fully managed, portable and easy-to-use C# library to read and edit audio data and metadata (tags) from various audio formats, playlists and CUE sheets
MIT License
459 stars 61 forks source link

Why are the lyrics in additional fields #137

Closed melinyi closed 2 years ago

melinyi commented 2 years ago

track.Lyrics Properties is empyt Nothing

I need the following methods to get the lyrics

track.AdditionalFields.TryGetValue("LYRICS", out var lyricStr);

Zeugma440 commented 2 years ago

I can't answer you if you don't tell me which tagging system you're reading from.

Is it an MP3 file with ID3v2 tagging ? An MP3 file with APE tagging ? An M4A file ? A FLAC file ?

Thanks in advance~~

melinyi commented 2 years ago

Some normal music files without any labels, I wrote the lyrics through TagLibSharp

I need the following methods to get the lyrics track.AdditionalFields.TryGetValue("LYRICS", out var lyricStr);

melinyi commented 2 years ago

TagLibSharp:

var tag = TagLib.File.Create(@"C:\My audio.mp3"); tag.Lyrics = "xxxxxxx"; tag.save();

Zeugma440 commented 2 years ago

Thanks for the dump you send (and then removed).

Your file is a FLAC file, tagged with native Vorbis data.

Lyrics are not a standard tag of the Vorbis format. However, it looks like using the "LYRICS" key is accepted as an informal standard among a few apps. I'll fix that soon !

Zeugma440 commented 2 years ago

Just released v4.05. You should now be able to use lyrics through Track.Lyrics.UnsynchronizedLyrics

melinyi commented 2 years ago

Nice, now can get the lyrics normally. Thank you。