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

eyeD3 throws exception when setting TCMP frame

Anonymous created an issue

When setting the TCMP frame to any value, eyeD3's "classic" plugin/interface throws an exception and the tag is not written.

Additional info: python2-eyeD3 0.7.1-1

Copy-paste from terminal:

eyeD3 --text-frame TCMP:0 01\ Punjabi\ Wedding\ Song\ \(Balle\ Balle\).mp3
01 Punjabi Wedding Song (Balle Balle).mp3 [ 8.19 MB ]
-------------------------------------------------------------------------------
Setting TCMP text frame to '0'
eyed3.plugins.classic:ERROR: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 401, in handleFile
save_tag = (self.handleEdits(self.audio_file.tag) or
File "/usr/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 810, in handleEdits
setter(fid, text)
File "/usr/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 155, in wrapped_fn
return fn(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/eyed3/id3/tag.py", line 221, in setTextFrame
self.frame_set.setTextFrame(fid, txt)
File "/usr/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 155, in wrapped_fn
return fn(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/eyed3/id3/frames.py", line 1335, in setTextFrame
assert(fid[0] == "T" and fid in list(ID3_FRAMES.keys()))
AssertionError

eyed3:ERROR: Uncaught exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 263, in <module>
retval = mainFunc(args, config)
File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 42, in main
fs_encoding=args.fs_encoding)
File "/usr/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 87, in walk
handler.handleFile(os.path.abspath(path))
File "/usr/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 438, in handleFile
raise StopIteration()
StopIteration
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 263, in <module>
retval = mainFunc(args, config)
File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 42, in main
fs_encoding=args.fs_encoding)
File "/usr/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 87, in walk
handler.handleFile(os.path.abspath(path))
File "/usr/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 438, in handleFile
raise StopIteration()
StopIteration
Uncaught exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 263, in <module>
retval = mainFunc(args, config)
File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 42, in main
fs_encoding=args.fs_encoding)
File "/usr/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 87, in walk
handler.handleFile(os.path.abspath(path))
File "/usr/lib/python2.7/site-packages/eyed3/plugins/classic.py", line 438, in handleFile
raise StopIteration()
StopIteration


Steps to reproduce:
eyeD3 --text-frame TCMP:0 /path/to/mp3/file

Comments (2)

  1. Log in to comment