diff --git a/subgen/subgen.py b/subgen/subgen.py index 0258468..a475a16 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -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