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

Error tagging the file - race condition? #280

Open
xeruf opened this issue Jul 15, 2024 · 0 comments
Open

Error tagging the file - race condition? #280

xeruf opened this issue Jul 15, 2024 · 0 comments

Comments

@xeruf
Copy link

xeruf commented Jul 15, 2024

❯ qobuz-dl dl https://www.qobuz.com/de-de/album/reach-for-glory-blackmill/ukr8nehdgbojc --no-db
Logging...
Logged: OK
Membership: Studio
Set max quality: 6 - 16 bit, 44.1kHz


Downloading: Reach for Glory
Quality: FLAC (16/44.1)

34.9k/34.9k /// cover.jpg
24.8M/24.8M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.00.tmp
Error tagging the file: [Errno 2] No such file or directory: '/home/janek/data/4-media/music/Electronic/Reach for Glory/.00.tmp'
Traceback (most recent call last):
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/mutagen/_util.py", line 251, in _openfile
    fileobj = open(filename, "rb+" if writable else "rb")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/janek/data/4-media/music/Electronic/Reach for Glory/.00.tmp'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/qobuz_dl/downloader.py", line 228, in _download_and_tag
    tag_function(
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/qobuz_dl/metadata.py", line 125, in tag_flac
    audio = FLAC(filename)
            ^^^^^^^^^^^^^^
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/mutagen/_file.py", line 48, in __init__
    self.load(*args, **kwargs)
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/mutagen/_util.py", line 185, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/mutagen/_util.py", line 154, in wrapper
    with _openfile(self, filething, filename, fileobj,
  File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/home/janek/.local/pipx/venvs/qobuz-dl/lib/python3.12/site-packages/mutagen/_util.py", line 272, in _openfile
    raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: '/home/janek/data/4-media/music/Electronic/Reach for Glory/.00.tmp'
38.9M/38.9M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.01.tmp
29.1M/29.1M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.02.tmp
24.2M/24.2M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.03.tmp
40.3M/40.3M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.04.tmp
31.9M/31.9M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.05.tmp
31.4M/31.4M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.06.tmp
30.0M/30.0M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.07.tmp
37.6M/37.6M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.08.tmp
38.1M/38.1M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.09.tmp
6.07M/6.07M /// /home/janek/data/4-media/music/Electronic/Reach for Glory/.10.tmp
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

1 participant