For example, my playlist has 25 albums, each album was added as a whole (no re-ordering songs).
When I download, Gamdl raise 5 errors, exactly the same error, and each time it happen in the FIRST song of a album. (It happen randomly, ok when re-download single file or whole playlist)
[INFO 21:45:10] [Track 310/- ] Downloading "Rose Bay"
Traceback (most recent call last):
File "C:\Python\Python311\Lib\site-packages\mutagen_util.py", line 251, in _openfile
fileobj = open(filename, "rb+" if writable else "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'D:\0 Apple Music\Classic\gamdl_temp_5e630be9\6763617200_staged.m4a'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\Python311\Lib\site-packages\gamdl\cli\cli.py", line 271, in main
await downloader.download(download_item)
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\downloader.py", line 88, in download
await self._download(item)
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\downloader.py", line 213, in _download
await self.song.download(item)
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\song.py", line 196, in download
await self.base.apply_tags(
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\base.py", line 351, in apply_tags
await asyncio.to_thread(
File "C:\Python\Python311\Lib\asyncio\threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\base.py", line 384, in apply_mp4_tags
mp4.save()
File "C:\Python\Python311\Lib\site-packages\mutagen\mp4_init.py", line 1222, in save
super(MP4, self).save(*args, **kwargs)
File "C:\Python\Python311\Lib\site-packages\mutagen_util.py", line 154, in wrapper
with _openfile(self, filething, filename, fileobj,
File "C:\Python\Python311\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Python\Python311\Lib\site-packages\mutagen_util.py", line 272, in _openfile
raise MutagenError(e)
mutagen.MutagenError: [Errno 13] Permission denied: 'D:\0 Apple Music\Classic\gamdl_temp_5e630be9\6763617200_staged.m4a'
[ERROR 21:45:15] [Track 310/- ] Error downloading "Rose Bay"
For example, my playlist has 25 albums, each album was added as a whole (no re-ordering songs).
When I download, Gamdl raise 5 errors, exactly the same error, and each time it happen in the FIRST song of a album. (It happen randomly, ok when re-download single file or whole playlist)
[INFO 21:45:10] [Track 310/- ] Downloading "Rose Bay"
Traceback (most recent call last):
File "C:\Python\Python311\Lib\site-packages\mutagen_util.py", line 251, in _openfile
fileobj = open(filename, "rb+" if writable else "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'D:\0 Apple Music\Classic\gamdl_temp_5e630be9\6763617200_staged.m4a'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\Python311\Lib\site-packages\gamdl\cli\cli.py", line 271, in main
await downloader.download(download_item)
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\downloader.py", line 88, in download
await self._download(item)
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\downloader.py", line 213, in _download
await self.song.download(item)
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\song.py", line 196, in download
await self.base.apply_tags(
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\base.py", line 351, in apply_tags
await asyncio.to_thread(
File "C:\Python\Python311\Lib\asyncio\threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python311\Lib\site-packages\gamdl\downloader\base.py", line 384, in apply_mp4_tags
mp4.save()
File "C:\Python\Python311\Lib\site-packages\mutagen\mp4_init.py", line 1222, in save
super(MP4, self).save(*args, **kwargs)
File "C:\Python\Python311\Lib\site-packages\mutagen_util.py", line 154, in wrapper
with _openfile(self, filething, filename, fileobj,
File "C:\Python\Python311\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Python\Python311\Lib\site-packages\mutagen_util.py", line 272, in _openfile
raise MutagenError(e)
mutagen.MutagenError: [Errno 13] Permission denied: 'D:\0 Apple Music\Classic\gamdl_temp_5e630be9\6763617200_staged.m4a'
[ERROR 21:45:15] [Track 310/- ] Error downloading "Rose Bay"