mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Fix pyav error catch
This commit is contained in:
1 parent
fb785f6319
commit
49231e0d11
1 file changed
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
subgen_version = '2024.12.6'
|
subgen_version = '2024.12.7'
|
||||||
|
|
||||||
from language_code import LanguageCode
|
from language_code import LanguageCode
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@@ -1345,7 +1345,7 @@ def has_audio(file_path):
|
|||||||
logging.debug(f"Unsupported or missing codec for audio stream in {file_path}")
|
logging.debug(f"Unsupported or missing codec for audio stream in {file_path}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
except (av.AVError, UnicodeDecodeError):
|
except (av.FFmpegError, UnicodeDecodeError):
|
||||||
logging.debug(f"Error processing file {file_path}")
|
logging.debug(f"Error processing file {file_path}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user