From b4ab1d739ebdb161a43fc820b84627b80de2c072 Mon Sep 17 00:00:00 2001 From: Kasim Hussain Date: Sun, 2 Aug 2020 15:41:58 +0100 Subject: [PATCH] Update YouDownloader.py --- YouDownloader.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/YouDownloader.py b/YouDownloader.py index 5da1553..2f2abb6 100644 --- a/YouDownloader.py +++ b/YouDownloader.py @@ -3,10 +3,12 @@ import sys, argparse, platform, os def installDep(): - if platform.system == "Darwin": + if platform.system() == "Darwin": os.system("brew install libmagic && brew install ffmpeg") - if platform.system == "Windows": - os.system("choco install ffmpeg -Y") + if platform.system() == "Windows": + os.system("choco install ffmpeg") + if platform.system() == None: + print("Cannot Determine OS") links = [] ytoptions = [] @@ -39,6 +41,7 @@ def downloader(link, ytoptions): audioCodec = 'mp3' if args.i: + print("Installing Dependencies") installDep() if args.a: