properly pipe to stderr
All checks were successful
Build and Publish / build_and_publish (push) Successful in 6m31s

This commit is contained in:
Nexus 2024-06-13 00:33:06 +01:00
parent f668e68ba8
commit 568ccf56a1
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -3,6 +3,7 @@ import io
import json
import logging
import pathlib
import sys
import tempfile
import typing
from pathlib import Path
@ -285,6 +286,7 @@ class FFMeta(commands.Cog):
"mp4",
"pipe:1",
stdout=asyncio.subprocess.PIPE,
stderr=sys.stderr
)
stdout, stderr = await process.communicate()
file = io.BytesIO(stdout)