From b496507e0bba4b37393b0293148d023b2df50135 Mon Sep 17 00:00:00 2001 From: Biplob Sutradhar Date: Wed, 26 May 2021 12:59:23 +0600 Subject: [PATCH 1/2] undefine os --- vtt_to_srt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtt_to_srt.py b/vtt_to_srt.py index d265895..297424e 100644 --- a/vtt_to_srt.py +++ b/vtt_to_srt.py @@ -1,5 +1,5 @@ from webvtt import WebVTT -import html +import html, os from pysrt.srtitem import SubRipItem from pysrt.srttime import SubRipTime From d7df8b18b510f3ae4f2bdfea202e536210ec9b12 Mon Sep 17 00:00:00 2001 From: Biplob Sutradhar Date: Sun, 6 Jun 2021 21:36:06 +0600 Subject: [PATCH 2/2] without flag run ffmpeg, mp4decrypt stderr streem --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 46048c6..2cf4641 100644 --- a/main.py +++ b/main.py @@ -901,7 +901,7 @@ def check_for_aria(): try: subprocess.Popen(["aria2c", "-v"], stdout=subprocess.DEVNULL, - stdin=subprocess.DEVNULL).wait() + stderr=subprocess.DEVNULL).wait() return True except FileNotFoundError: return False @@ -915,8 +915,8 @@ def check_for_aria(): def check_for_ffmpeg(): try: subprocess.Popen(["ffmpeg"], - stdout=subprocess.DEVNULL, - stdin=subprocess.DEVNULL).wait() + stderr=subprocess.DEVNULL, + stdout=subprocess.DEVNULL).wait() return True except FileNotFoundError: return False @@ -930,8 +930,8 @@ def check_for_ffmpeg(): def check_for_mp4decrypt(): try: subprocess.Popen(["mp4decrypt"], - stdout=subprocess.DEVNULL, - stdin=subprocess.DEVNULL).wait() + stderr=subprocess.DEVNULL, + stdout=subprocess.DEVNULL).wait() return True except FileNotFoundError: return False