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

misnamed .opus.webm causes stacktrace #3

Open
7eggert opened this issue Sep 7, 2019 · 1 comment
Open

misnamed .opus.webm causes stacktrace #3

7eggert opened this issue Sep 7, 2019 · 1 comment
Assignees

Comments

@7eggert
Copy link

7eggert commented Sep 7, 2019

The .opus file was downloaded from a video platform and named .opus by the script or by the browser. Yet it contains a .webm container with an opus stream. Regainer is confused about this.

Namespace(FILE=['foo.opus'], album=deque([]), dry_run=False, exclude=deque([]), force=False, jobs=2, track=deque([]))
./regainer:725: DeprecationWarning: 'with (yield from lock)' is deprecated use 'async with lock' instead
  with (yield from self.job_sem):
Traceback (most recent call last):
  File "./regainer", line 878, in <module>
    loop.run_until_complete(future)
  File "/usr/lib64/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "./regainer", line 745, in scan
    yield from self.read_tags()
  File "./regainer", line 728, in read_tags
    self.tagger.read_gain)
  File "/usr/lib64/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "./regainer", line 460, in read_gain
    if self.audio.tags is None:
AttributeError: 'NoneType' object has no attribute 'tags'
@kepstin
Copy link
Owner

kepstin commented Sep 7, 2019

The underlying mutagen library does not support tagging webm or matroska files… yet. See quodlibet/mutagen#3 and quodlibet/quodlibet#1702

I should be able to provide a more readable error message, however.

@kepstin kepstin self-assigned this Sep 7, 2019
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