This commit is contained in:
Puyodead1 2021-06-18 16:54:44 -04:00
commit 4c0f4d2225
2 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ Windows is the primary development OS, but I've made an effort to support linux
# Requirements # Requirements
1. You would need to download `ffmpeg`, `aria2c` and `mp4decrypter` (from Bento4 SDK) and ensure they are in path (typing their name in cmd should invoke them). 1. You would need to download `ffmpeg`, `aria2c` and `mp4decrypt` (from Bento4 SDK) and ensure they are in path (typing their name in cmd should invoke them).
# Usage # Usage

10
main.py
View File

@ -901,7 +901,7 @@ def check_for_aria():
try: try:
subprocess.Popen(["aria2c", "-v"], subprocess.Popen(["aria2c", "-v"],
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
stdin=subprocess.DEVNULL).wait() stderr=subprocess.DEVNULL).wait()
return True return True
except FileNotFoundError: except FileNotFoundError:
return False return False
@ -915,8 +915,8 @@ def check_for_aria():
def check_for_ffmpeg(): def check_for_ffmpeg():
try: try:
subprocess.Popen(["ffmpeg"], subprocess.Popen(["ffmpeg"],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
stdin=subprocess.DEVNULL).wait() stdout=subprocess.DEVNULL).wait()
return True return True
except FileNotFoundError: except FileNotFoundError:
return False return False
@ -930,8 +930,8 @@ def check_for_ffmpeg():
def check_for_mp4decrypt(): def check_for_mp4decrypt():
try: try:
subprocess.Popen(["mp4decrypt"], subprocess.Popen(["mp4decrypt"],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
stdin=subprocess.DEVNULL).wait() stdout=subprocess.DEVNULL).wait()
return True return True
except FileNotFoundError: except FileNotFoundError:
return False return False