mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Error handling
This commit is contained in:
parent
e399a564fa
commit
57f6ae4342
1 changed files with 2 additions and 0 deletions
|
@ -826,6 +826,8 @@ def _run_mutagen(self, info):
|
|||
self.to_screen(f'Adding metadata to "{filename}"')
|
||||
try:
|
||||
f = mutagen.File(filename)
|
||||
if f is None:
|
||||
raise TypeError(f'Mutagen unable to determine type of file: {info["ext"]}')
|
||||
self._assemble_metadata(f, metadata)
|
||||
f.save()
|
||||
except Exception as err:
|
||||
|
|
Loading…
Reference in a new issue