nicfit / eyeD3

eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3v1 (1.0/1.1) and ID3v2 (2.3/2.4).
http://eyed3.nicfit.net/
GNU General Public License v3.0
532 stars 58 forks source link

Permit milliseconds in ISO8601 timestamp #547

Closed joshcvt closed 3 years ago

joshcvt commented 3 years ago

Certain audio file generators leave a timestamp in the format 2021-06-13T00:14:59.000Z causing eyeD3 to emit Invalid date: 2021-06-13T00:14:59.000Z on parse

Adding "%Y-%m-%dT%H:%M:%S.%fZ" to permissible parse formats may resolve this issue.

https://github.com/nicfit/eyeD3/blob/daaf6d1cc3bb0153eb968f113b003bd6347957cf/eyed3/core.py#L265

nicfit commented 3 years ago

This is not supported by the ID3 specification: https://github.com/id3/ID3v2.4/blob/master/id3v2.40-structure.txt#L377