Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem reading a wav file (struct.error) #64

Closed
comiconomenclaturist opened this issue Mar 21, 2019 · 4 comments
Closed

Problem reading a wav file (struct.error) #64

comiconomenclaturist opened this issue Mar 21, 2019 · 4 comments

Comments

@comiconomenclaturist
Copy link

I have an issue with reading a couple of wav files. They were ripped from a CD using dBpoweramp, but TinyTag can't read them. The metadata can be read by ffmpeg though.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tinytag/tinytag.py", line 131, in get
    tag.load(tags=tags, duration=duration, image=image)
  File "tinytag/tinytag.py", line 145, in load
    self._parse_tag(self._filehandler)
  File "tinytag/tinytag.py", line 860, in _parse_tag
    self._determine_duration(fh)  # parse whole file to determine tags:(
  File "tinytag/tinytag.py", line 851, in _determine_duration
    id3._parse_id3v2(fh)
  File "tinytag/tinytag.py", line 596, in _parse_id3v2
    frame_size = self._parse_frame(fh, id3version=major)
  File "tinytag/tinytag.py", line 629, in _parse_frame
    frame = struct.unpack(binformat, frame_header_data)
struct.error: unpack requires a string argument of length 10
@devsnd
Copy link
Member

devsnd commented Mar 26, 2019

@comiconomenclaturist can you please provide a sample so i can reproduce the issue?

@devsnd
Copy link
Member

devsnd commented Apr 13, 2019

Hey @comiconomenclaturist

Your issue has been fixed by @ianhomer in PR #67

If you install the newest version from pypi you should be good to go!

@devsnd devsnd closed this as completed Apr 13, 2019
@comiconomenclaturist
Copy link
Author

great, thanks! I'll check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants