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