From 636fd12b5ff975b46f952726511629df288bfbc9 Mon Sep 17 00:00:00 2001 From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev> Date: Mon, 6 Sep 2021 17:12:09 -0400 Subject: [PATCH] open file correctly --- transcoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder.py b/transcoder.py index eb172fb..8ef3e21 100644 --- a/transcoder.py +++ b/transcoder.py @@ -15,7 +15,7 @@ class Transcoder(StreamSource): if os.path.exists(fifoFile): os.remove(fifoFile) os.mkfifo(fifoFile) - self.file = open(fifoFile, 'a') + self.file = open(fifoFile, 'w+b') self.process = ( ffmpeg .input(fifoFile) .output('pipe:', format='mp3')