Update subgen.py

This commit is contained in:
McCloudS
2024-03-20 08:02:56 -06:00
committed by GitHub
parent 699cc6e8c4
commit fdf3d541be

View File

@@ -606,8 +606,8 @@ def get_jellyfin_admin(users):
def has_audio(file_path):
try:
with av.open(file_path) as container
return any(stream.type == 'audio' for stream in container.streams)
with av.open(file_path) as container:
return any(stream.type == 'audio' for stream in container.streams)
except (av.AVError, UnicodeDecodeError):
return False