1. Travis Shirk
  2. eyeD3
  3. Issues
Issue #108 resolved

Setting recording date fails.

Anonymous created an issue

I fail to set the recording date of the attached MP3 to 2014. The behavior, altogether, is a tad bit strange:

$ eyeD3 --version |& head -n1
eyeD3 0.7.9-final (C) Copyright 2002-2014 Travis Shirk
$ eyeD3 orig.mp3| grep recor
recording date: 2015
$ eyeD3 --recording-date 2014 orig.mp3| grep recor
recording date: 2015
$ eyeD3 --recording-date 2014-09 orig.mp3| grep recor
recording date: 2015
$ eyeD3 --recording-date 2014-11-11 orig.mp3| grep recor
recording date: 2015-11-11
$ eyeD3 --recording-date 2011-09-22 orig.mp3| grep recor
recording date: 2015-09-22

Thanks!

Comments (5)

  1. Travis Shirk repo owner

    The above commands should include a lot of error output, since orig.mp3 is v2.2 ID3 and eyeD3 will read but not write this version. So you need to also convert the ID3 version. For example, where is what I get with eyeD3 0.7.9:

    $ eyeD3 --recording-date 2014 issue108.mp3 
    /home/travis/projects/eyeD3/hg/issue108.mp3                        [ 4.34 MB ]
    -------------------------------------------------------------------------------
    Setting recording date: 2014
    Time: 03:09 MPEG1, Layer III    [ 192 kb/s @ 44100 Hz - Stereo ]
    -------------------------------------------------------------------------------
    ID3 v2.2:
    title: Complainte du pêcheur
    artist: Steve Normandin
    album: Chansons d'amour d'homme
    album artist: None
    recording date: 2015
    eyed3.id3:WARNING: Non standard genre name: Musique francophone
    track: 6/12     genre: Musique francophone (id None)
    Comment: [Description: iTunPGAP] [Lang: eng]
    0
    Comment: [Description: iTunNORM] [Lang: eng]
     0000030A 000002E8 00002FDA 00002D26 0000B56D 0000B56D 00007821 0000785C 00014D92 00014D78
    Comment: [Description: iTunSMPB] [Lang: eng]
     00000000 00000210 00000AE0 00000000007F9590 00000000 00456273 00000000 00000000 00000000 00000000 00000000 00000000
    Comment: [Description: iTunes_CDDB_1] [Lang: eng]
    A90B570C+217937+12+150+31958+48030+67181+79437+101842+116062+134686+144080+170200+187661+202739
    Comment: [Description: iTunes_CDDB_TrackNumber] [Lang: eng]
    6
    Uncaught exception: Unable to write ID3 v2.2
    
    eyed3:ERROR: Unable to write ID3 v2.2
    Traceback (most recent call last):
      File "/home/travis/projects/eyeD3/hg/src/eyed3/main.py", line 281, in <module>
        retval = mainFunc(args, config)
      File "/home/travis/projects/eyeD3/hg/src/eyed3/main.py", line 49, in main
        fs_encoding=args.fs_encoding)
      File "/home/travis/projects/eyeD3/hg/src/eyed3/utils/__init__.py", line 75, in walk
        handler.handleFile(os.path.abspath(path))
      File "/home/travis/projects/eyeD3/hg/src/eyed3/plugins/classic.py", line 485, in handleFile
        max_padding=max_padding)
      File "/home/travis/projects/eyeD3/hg/src/eyed3/id3/tag.py", line 760, in save
        raise NotImplementedError("Unable to write ID3 v2.2")
    NotImplementedError: Unable to write ID3 v2.2
    

    Same command but output the tag in v2.4 format:

    $ eyeD3 --recording-date 2014 --to-v2.4 issue108.mp3 
    /home/travis/projects/eyeD3/hg/issue108.mp3                        [ 4.34 MB ]
    -------------------------------------------------------------------------------
    Setting recording date: 2014
    Time: 03:09 MPEG1, Layer III    [ 192 kb/s @ 44100 Hz - Stereo ]
    -------------------------------------------------------------------------------
    ID3 v2.2:
    title: Complainte du pêcheur
    artist: Steve Normandin
    album: Chansons d'amour d'homme
    album artist: None
    recording date: 2015
    eyed3.id3:WARNING: Non standard genre name: Musique francophone
    track: 6/12     genre: Musique francophone (id None)
    Comment: [Description: iTunPGAP] [Lang: eng]
    0
    Comment: [Description: iTunNORM] [Lang: eng]
     0000030A 000002E8 00002FDA 00002D26 0000B56D 0000B56D 00007821 0000785C 00014D92 00014D78
    Comment: [Description: iTunSMPB] [Lang: eng]
     00000000 00000210 00000AE0 00000000007F9590 00000000 00456273 00000000 00000000 00000000 00000000 00000000 00000000
    Comment: [Description: iTunes_CDDB_1] [Lang: eng]
    A90B570C+217937+12+150+31958+48030+67181+79437+101842+116062+134686+144080+170200+187661+202739
    Comment: [Description: iTunes_CDDB_TrackNumber] [Lang: eng]
    6
    Writing ID3 version v2.4
    -------------------------------------------------------------------------------
    
    
    $ eyeD3 issue108.mp3  |  grep record
    recording date: 2015
    eyed3.id3:WARNING: Non standard genre name: Musique francophone
    
  2. mcadilhac

    Deeply sorry, I attached the wrong one. I meant to attach the same file with 2.3 ID3. In any case, shouldn't your last command show "recording date: 2014" rather than 2015? For completeness, here is what I get, starting with the same file as above (I removed the WARNING for genre for clarity):

    $ eyeD3 --to-v2.3 orig.mp3 
    /tmp/orig.mp3                                                      [ 4.34 MB ]
    -------------------------------------------------------------------------------
    Time: 03:09     MPEG1, Layer III        [ 192 kb/s @ 44100 Hz - Stereo ]
    -------------------------------------------------------------------------------
    ID3 v2.2:
    title: Complainte du pêcheur
    artist: Steve Normandin
    album: Chansons d'amour d'homme
    album artist: None
    recording date: 2015
    track: 6/12             genre: Musique francophone (id None)
    Comment: [Description: iTunPGAP] [Lang: eng]
    0
    Comment: [Description: iTunNORM] [Lang: eng]
     0000030A 000002E8 00002FDA 00002D26 0000B56D 0000B56D 00007821 0000785C 00014D92 00014D78
    Comment: [Description: iTunSMPB] [Lang: eng]
     00000000 00000210 00000AE0 00000000007F9590 00000000 00456273 00000000 00000000 00000000 00000000 00000000 00000000
    Comment: [Description: iTunes_CDDB_1] [Lang: eng]
    A90B570C+217937+12+150+31958+48030+67181+79437+101842+116062+134686+144080+170200+187661+202739
    Comment: [Description: iTunes_CDDB_TrackNumber] [Lang: eng]
    6
    Writing ID3 version v2.3
    -------------------------------------------------------------------------------
    $ eyeD3 orig.mp3| grep recor
    recording date: 2015
    $ eyeD3 --recording-date 2014 orig.mp3| grep recor
    Setting recording date: 2014
    recording date: 2015
    Writing ID3 version v2.3
    $ eyeD3 --recording-date 2014-09 orig.mp3| grep recor
    Setting recording date: 2014-09
    recording date: 2015
    Writing ID3 version v2.3
    $ eyeD3 --recording-date 2014-11-11 orig.mp3| grep recor
    Setting recording date: 2014-11-11
    recording date: 2015-11-11
    Writing ID3 version v2.3
    $ eyeD3 --recording-date 2011-09-22 orig.mp3| grep recor
    Setting recording date: 2011-09-22
    recording date: 2015-11-11
    Writing ID3 version v2.3
    $ eyeD3 orig.mp3| grep recor
    recording date: 2015-11-11
    

    (Strangely, the behavior is slightly different than last time, where the month and day of the month were changed by the second-to-last command.)

    Cheers!

  3. Log in to comment