[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Cannot edit year tag with YYYY-MM-DD format
From:       shadowsandflames () gmail ! com
Date:       2013-09-06 5:12:27
Message-ID: CABeDCv7N2sGrxURJextf5J=E+krrgJSfco1vbeMuVYvMCrCErQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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



[Attachment #5 (text/html)]

<div dir="ltr">I have a problems with the file in attach [1]:<div><br></div><div>When \
I open it:</div><div><br></div><div><div><span class="" style="white-space:pre">  \
</span>TagLib::MPEG::File.open(file_name) do |mp3_file| </div>

<div><span class="" style="white-space:pre">    puts \
</span>mp3_file.id3v2_tag..frame_list(&#39;TDRC&#39;).first.field_list.first # ==&gt; \
1940</div><div>  end</div><div><br></div><div>It returns 1940 only. Which is strange \
since in Mp3tag I can see the whole date: 1940-12-04.</div>

<div><br></div><div>Even worse, when I try to edit the date with \
taglib:</div><div><br></div><div><div><span class="" style="white-space:pre">  \
</span>TagLib::MPEG::File.open(file_name) do |mp3_file| </div><div><span class="" \
style="white-space:pre">    \
</span>mp3_file.id3v2_tag..frame_list(&#39;TDRC&#39;).first.field_list[0] = \
&quot;1940-12-04&quot;</div>

<div>    mp3_file.save()</div><div>  end</div></div><div><br></div><div>and then read \
it.</div><div><br></div><div>I have the same - 1940 - \
result.<br></div><div><br></div><div>Any idea what might be happening?</div><div>

<br></div><div>thanks!</div><div><br></div><div><br></div><div><br></div><div>[1] <a \
href="https://dl.dropboxusercontent.com/u/1583971/passar_e_apagar/07-Rodolfo%20Biagi%2 \
0-%20A%20M%C3%AD%20No%20Me%20Interesa-Andres%20Falgas.mp3">https://dl.dropboxuserconte \
nt.com/u/1583971/passar_e_apagar/07-Rodolfo%20Biagi%20-%20A%20M%C3%AD%20No%20Me%20Interesa-Andres%20Falgas.mp3</a><br>


</div></div></div>

--001a1134c882f8d0d504e5b01672--


["=?ISO-8859-1?Q?07=2DRodolfo_Biagi_=2D_A_M=ED_No_Me_Interesa=2DAndres_Falgas=2Emp3?=" (audio/mpeg)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic