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
440 stars 60 forks source link

Unable to set PublishingDate for flac files #235

Closed nlogozzo closed 8 months ago

nlogozzo commented 8 months ago

Hi, We have this flac file: https://we.tl/t-5ZnMpOASFi Sorry for the wetransfer link but the file is bigger than 20 MB so GitHub doesn't like it. If it expires before the time you download it, let me know I will send a new one.

We simply load it and set the PublishingDate:

var track = new Track(Path);
track.PublishingDate = new DateTime(2023, 10, 18);
track.Save();

upon reloading and reading the file, the publish date was not saved:

var track = new Track(Path);
Console.WriteLine(track.PublishingDate?.ToShortDateString() ?? ""); //Nothing is printed 

From our testing, this issue only affects flac files and not mp3.

Zeugma440 commented 8 months ago

Explanation's simple : Vorbis didn't have any mapping for that field until now.

Now it's done 😉

I took advantage of your request to map WMA as well, which was a little more complicated, spec-wise.

nlogozzo commented 8 months ago

Thanks!!

nlogozzo commented 8 months ago

If we could get a release, that would be great :)

Zeugma440 commented 8 months ago

Available on today's v5.11 👍

nlogozzo commented 8 months ago

Available on today's v5.11 👍

Thanks again!!