handle UTF-8 encoding check files
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ def get_file_info(file_path):
|
||||
'-of', 'json',
|
||||
str(file_path)
|
||||
]
|
||||
result = subprocess.run(cmd, capture_output=True, text=True)
|
||||
result = subprocess.run(cmd, capture_output=True, text=True, encoding='utf-8', errors='replace')
|
||||
if result.returncode != 0:
|
||||
return None, f"ffprobe failed: {result.stderr}"
|
||||
info = json.loads(result.stdout)
|
||||
|
||||
Reference in New Issue
Block a user