From fdf3d541bea983be3657e3d418378f6a51ba09c2 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Wed, 20 Mar 2024 08:02:56 -0600 Subject: [PATCH] Update subgen.py --- subgen/subgen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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