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

Traceback for invalid dates

Travis Shirk
repo owner created an issue
claw: eyed3:ERROR: Invalid date string: -1
Traceback (most recent call last):
  File "/home/ashley/Devel/eyed3/src/eyed3/main.py", line 265, in <module>
    retval = mainFunc(args, config)
  File "/home/ashley/Devel/eyed3/src/eyed3/main.py", line 42, in main
    fs_encoding=args.fs_encoding)
  File "/home/ashley/Devel/eyed3/src/eyed3/utils/__init__.py", line 103,
in walk
    handler.handleFile(f)
  File "/home/ashley/Devel/eyed3/src/eyed3/plugins/statistics.py", line
404, in handleFile
    scores = rule.test(path, self.audio_file) or []
  File "/home/ashley/Devel/eyed3/src/eyed3/plugins/statistics.py", line
73, in test
    if not tag.best_release_date:
  File "/home/ashley/Devel/eyed3/src/eyed3/id3/tag.py", line 414, in
best_release_date
    self.recording_date)
  File "/home/ashley/Devel/eyed3/src/eyed3/id3/tag.py", line 439, in
_getRecordingDate
    return self._getDate("TDRC") or self._getV23RecordingDate()
  File "/home/ashley/Devel/eyed3/src/eyed3/id3/tag.py", line 548, in
_getDate
    return self.frame_set[fid][0].date
  File "/home/ashley/Devel/eyed3/src/eyed3/id3/frames.py", line 350, in date
    return core.Date.parse(self.text.encode("latin1")) if self.text \
  File "/home/ashley/Devel/eyed3/src/eyed3/core.py", line 291, in parse
    pdate, fmt = Date._validateFormat(s)
  File "/home/ashley/Devel/eyed3/src/eyed3/core.py", line 282, in
_validateFormat
    raise ValueError("Invalid date string: %s" % s)
ValueError: Invalid date string: -1

Comments (2)

  1. Log in to comment