simplified some code
This commit is contained in:
parent
0dcc686b19
commit
468dcf2f00
|
@ -69,10 +69,9 @@ def load_tag_information(file: File) -> Tags:
|
|||
try:
|
||||
tags = load_tag_information_mutagen(file)
|
||||
return tags
|
||||
except Exception as _:
|
||||
tags = load_tag_information_ffmpeg(file)
|
||||
return tags
|
||||
except:
|
||||
try:
|
||||
tags = load_tag_information_ffmpeg(file)
|
||||
return tags
|
||||
except:
|
||||
print(f"Could not get tags for file {file.filename}. Exiting.")
|
||||
exit()
|
||||
print(f"Could not get tags for file {file.filename}. Exiting.")
|
||||
exit()
|
||||
|
|
Loading…
Reference in a new issue