Issue #12 resolved

error in play_count

Ashley Roach
created an issue
-------------------------------------------------------------------------------
Dean Martin - You_re Nobody.mp3 [ 2.08 MB ]
-------------------------------------------------------------------------------
Time: 02:16 MPEG1, Layer III    [ 128 kb/s @ 44100 Hz - Joint stereo ]
-------------------------------------------------------------------------------
ID3 v2.4:
title: Your nobody till somebody loves you
artist: Frank Sinatra
album: Swingers
recording date: 1996
track: 1        genre: Jazz (id 8)
eyed3.plugins.classic:ERROR: Traceback (most recent call last):
  File "/home/ashley/mishmash/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 411, in handleFile
    self.printTag(self.audio_file.tag)
  File "/home/ashley/mishmash/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 516, in printTag
    play_count = tag.play_count
  File "/home/ashley/mishmash/lib/python2.7/site-packages/eyed3/id3/tag.py", line 329, in play_count
    assert(type(pc.count) in (int,))
AssertionError

Comments (5)

  1. Ashley Roach reporter
    eyed3.core:INFO: Loading file: /musicdrive/Music/Big Ass Truck/Self Titled/Folder.jpg
    eyed3.core:INFO: Loading file: /musicdrive/Music/Big Band/Frank Sinatra/Swingers/AlbumArt_{875F188A-FF96-4D38-8ADA-07A7092A56D7}_Large.jpg
    eyed3.core:INFO: Loading file: /musicdrive/Music/Big Band/Frank Sinatra/Swingers/Dean Martin - You_re Nobody.mp3
    eyed3.id3.headers:DEBUG: Located ID3 v2 tag
    eyed3.id3.headers:DEBUG: TagHeader [major]: 2 
    eyed3.id3.headers:DEBUG: TagHeader [minor]: 4 
    eyed3.id3.headers:DEBUG: TagHeader [rev]: 0 
    eyed3.id3.headers:DEBUG: TagHeader [flags]: unsync(0) extended(0) experimental(0) footer(0)
    eyed3.id3.headers:DEBUG: TagHeader [size string]: 0x00002376
    eyed3.id3.headers:DEBUG: TagHeader [size]: 4598 (0x11f6)
    eyed3.id3.frames:DEBUG: size_left: 4598
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #1
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 10 (0xA)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TMED (0x544d4544)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 8 (0x8)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 8 (0x8) bytes of data from byte pos 20 (0x14)
    eyed3.id3.frames:DEBUG: FrameSet: 8 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TMED' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: latin_1
    eyed3.id3.frames:DEBUG: TextFrame text: UNKNOWN
    eyed3.id3.frames:DEBUG: size_left: 4580
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #2
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 28 (0x1C)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: PCNT (0x50434e54)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 4 (0x4)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 4 (0x4) bytes of data from byte pos 38 (0x26)
    eyed3.id3.frames:DEBUG: FrameSet: 4 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'PCNT' with class '<class 'eyed3.id3.frames.PlayCountFrame'>'
    eyed3.id3.frames:DEBUG: size_left: 4566
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #3
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 42 (0x2A)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TIT2 (0x54495432)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 36 (0x24)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 36 (0x24) bytes of data from byte pos 52 (0x34)
    eyed3.id3.frames:DEBUG: FrameSet: 36 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TIT2' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: Your nobody till somebody loves you
    eyed3.id3.frames:DEBUG: size_left: 4520
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #4
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 88 (0x58)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TRCK (0x5452434b)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 3 (0x3)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 3 (0x3) bytes of data from byte pos 98 (0x62)
    eyed3.id3.frames:DEBUG: FrameSet: 3 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TRCK' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: 01
    eyed3.id3.frames:DEBUG: size_left: 4507
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #5
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 101 (0x65)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: PRIV (0x50524956)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 138 (0x8A)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 138 (0x8A) bytes of data from byte pos 111 (0x6F)
    eyed3.id3.frames:DEBUG: FrameSet: 138 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'PRIV' with class '<class 'eyed3.id3.frames.PrivateFrame'>'
    eyed3.id3.frames:DEBUG: size_left: 4359
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #6
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 249 (0xF9)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TCON (0x54434f4e)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 2 (0x2)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 2 (0x2) bytes of data from byte pos 259 (0x103)
    eyed3.id3.frames:DEBUG: FrameSet: 2 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TCON' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: 8
    eyed3.id3.frames:DEBUG: size_left: 4347
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #7
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 261 (0x105)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TALB (0x54414c42)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 9 (0x9)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 9 (0x9) bytes of data from byte pos 271 (0x10F)
    eyed3.id3.frames:DEBUG: FrameSet: 9 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TALB' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: Swingers
    eyed3.id3.frames:DEBUG: size_left: 4328
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #8
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 280 (0x118)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TPE2 (0x54504532)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 14 (0xE)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 14 (0xE) bytes of data from byte pos 290 (0x122)
    eyed3.id3.frames:DEBUG: FrameSet: 14 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TPE2' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: latin_1
    eyed3.id3.frames:DEBUG: TextFrame text: Frank Sinatra
    eyed3.id3.frames:DEBUG: size_left: 4304
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #9
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 304 (0x130)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: PRIV (0x50524956)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 39 (0x27)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 39 (0x27) bytes of data from byte pos 314 (0x13A)
    eyed3.id3.frames:DEBUG: FrameSet: 39 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'PRIV' with class '<class 'eyed3.id3.frames.PrivateFrame'>'
    eyed3.id3.frames:DEBUG: size_left: 4255
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #9
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 353 (0x161)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: PRIV (0x50524956)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 33 (0x21)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 33 (0x21) bytes of data from byte pos 363 (0x16B)
    eyed3.id3.frames:DEBUG: FrameSet: 33 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'PRIV' with class '<class 'eyed3.id3.frames.PrivateFrame'>'
    eyed3.id3.frames:DEBUG: size_left: 4212
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #9
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 396 (0x18C)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: PRIV (0x50524956)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 33 (0x21)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 33 (0x21) bytes of data from byte pos 406 (0x196)
    eyed3.id3.frames:DEBUG: FrameSet: 33 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'PRIV' with class '<class 'eyed3.id3.frames.PrivateFrame'>'
    eyed3.id3.frames:DEBUG: size_left: 4169
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #9
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 439 (0x1B7)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: PRIV (0x50524956)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 28 (0x1C)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 28 (0x1C) bytes of data from byte pos 449 (0x1C1)
    eyed3.id3.frames:DEBUG: FrameSet: 28 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'PRIV' with class '<class 'eyed3.id3.frames.PrivateFrame'>'
    eyed3.id3.frames:DEBUG: size_left: 4131
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #9
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 477 (0x1DD)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TCOM (0x54434f4d)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 56 (0x38)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 56 (0x38) bytes of data from byte pos 487 (0x1E7)
    eyed3.id3.frames:DEBUG: FrameSet: 56 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TCOM' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: James Cavanaugh/James Cavanaugh/Larry Stock/Russ Morgan
    eyed3.id3.frames:DEBUG: size_left: 4065
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #10
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 543 (0x21F)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TPE1 (0x54504531)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 14 (0xE)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 14 (0xE) bytes of data from byte pos 553 (0x229)
    eyed3.id3.frames:DEBUG: FrameSet: 14 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TPE1' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: Frank Sinatra
    eyed3.id3.frames:DEBUG: size_left: 4041
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #11
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 567 (0x237)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TLEN (0x544c454e)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 7 (0x7)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 7 (0x7) bytes of data from byte pos 577 (0x241)
    eyed3.id3.frames:DEBUG: FrameSet: 7 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TLEN' with class '<class 'eyed3.id3.frames.TextFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: latin_1
    eyed3.id3.frames:DEBUG: TextFrame text: 135000
    eyed3.id3.frames:DEBUG: size_left: 4024
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #12
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 584 (0x248)
    eyed3.id3.headers:DEBUG: FrameHeader [id]: TDRC (0x54445243)
    eyed3.id3.headers:DEBUG: FrameHeader [data size]: 5 (0x5)
    eyed3.id3.headers:DEBUG: FrameHeader [flags]: ta(0) fa(0) ro(0) co(0) en(0) gr(0) un(0) dl(0)
    eyed3.id3.frames:DEBUG: FrameSet: Reading 5 (0x5) bytes of data from byte pos 594 (0x252)
    eyed3.id3.frames:DEBUG: FrameSet: 5 bytes of data read
    eyed3.id3.frames:DEBUG: createFrame 'TDRC' with class '<class 'eyed3.id3.frames.DateFrame'>'
    eyed3.id3.frames:DEBUG: Unicode encoding: utf_8
    eyed3.id3.frames:DEBUG: TextFrame text: 1996
    eyed3.id3.frames:DEBUG: size_left: 4009
    eyed3.id3.frames:DEBUG: +++++++++++++++++++++++++++++++++++++++++++++++++
    eyed3.id3.frames:DEBUG: FrameSet: Reading Frame #13
    eyed3.id3.headers:DEBUG: FrameHeader [start byte]: 599 (0x257)
    eyed3.id3.headers:DEBUG: FrameHeader: Null frame id found at byte 603
    eyed3.id3.frames:DEBUG: No frame found, implied padding of 4009 bytes
    eyed3.id3.tag:DEBUG: Tag contains 4009 bytes of padding.
    eyed3.mp3:DEBUG: mp3 header search starting @ 1200
    eyed3.mp3.headers:DEBUG: MPEG audio version: 1.0
    eyed3.mp3.headers:DEBUG: MPEG audio layer: III
    eyed3.mp3.headers:DEBUG: MPEG sampling frequency: 44100
    eyed3.mp3.headers:DEBUG: MPEG bit rate: 128
    eyed3.mp3.headers:DEBUG: MPEG channel mode: Joint stereo
    eyed3.mp3.headers:DEBUG: MPEG channel mode extension: 2
    eyed3.mp3.headers:DEBUG: MPEG CRC error protection: False
    eyed3.mp3.headers:DEBUG: MPEG original: 1
    eyed3.mp3.headers:DEBUG: MPEG copyright: 1
    eyed3.mp3.headers:DEBUG: MPEG private bit: 0
    eyed3.mp3.headers:DEBUG: MPEG padding: 0
    eyed3.mp3.headers:DEBUG: MPEG emphasis: None
    eyed3.mp3.headers:DEBUG: MPEG frame length: 417
    eyed3.mp3:DEBUG: mp3 header fffb906c found at position: 0x1200
    Dean Martin - You_re Nobody.mp3 [ 2.08 MB ]
    -------------------------------------------------------------------------------
    Time: 02:16 MPEG1, Layer III    [ 128 kb/s @ 44100 Hz - Joint stereo ]
    -------------------------------------------------------------------------------
    ID3 v2.4:
    title: Your nobody till somebody loves you
    artist: Frank Sinatra
    album: Swingers
    recording date: 1996
    track: 1        genre: Jazz (id 8)
    eyed3.plugins.classic:ERROR: Traceback (most recent call last):
      File "/home/ashley/mishmash/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 411, in handleFile
        self.printTag(self.audio_file.tag)
      File "/home/ashley/mishmash/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 516, in printTag
        play_count = tag.play_count
      File "/home/ashley/mishmash/lib/python2.7/site-packages/eyed3/id3/tag.py", line 329, in play_count
        assert(type(pc.count) in (int,))
    AssertionError
    
  2. Travis Shirk repo owner

    I don't see this with latest or 0.7.1. But, the assert that is firing is pointless anyway, since a bad numeric string will fail in PlayCountFrame. So I'll remove. I'd like to know the type in your environment though, if you can break in pdb right before the assert and 'print type(pc.count)' that'd be helpful.

  3. Log in to comment