Cannot edit year tag with YYYY-MM-DD format

Scott Wheeler wheeler at kde.org
Fri Sep 6 07:17:02 UTC 2013


This appears to be a problem with the Ruby bindings -- you might try contacting their author.  This works fine in C++:

https://gist.github.com/scotchi/6460510

-Scott

On Sep 6, 2013, at 7:12 AM, shadowsandflames at gmail.com wrote:

> I have a problems with the file in attach [1]:
> 
> When I open it:
> 
>   TagLib::MPEG::File.open(file_name) do |mp3_file| 
>     puts mp3_file.id3v2_tag..frame_list('TDRC').first.field_list.first # ==> 1940
>   end
> 
> It returns 1940 only. Which is strange since in Mp3tag I can see the whole date: 1940-12-04.
> 
> Even worse, when I try to edit the date with taglib:
> 
>   TagLib::MPEG::File.open(file_name) do |mp3_file| 
>     mp3_file.id3v2_tag..frame_list('TDRC').first.field_list[0] = "1940-12-04"
>     mp3_file.save()
>   end
> 
> and then read it.
> 
> I have the same - 1940 - result.
> 
> Any idea what might be happening?
> 
> thanks!
> 
> 
> 
> [1] https://dl.dropboxusercontent.com/u/1583971/passar_e_apagar/07-Rodolfo%20Biagi%20-%20A%20M%C3%AD%20No%20Me%20Interesa-Andres%20Falgas.mp3
> <07-Rodolfo Biagi - A Mí No Me Interesa-Andres Falgas.mp3>_______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel



More information about the taglib-devel mailing list