Skip to content

Commit

Permalink
Update YouDownloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiimh1 committed Aug 2, 2020
1 parent 5179145 commit b4ab1d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions YouDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -39,6 +41,7 @@ def downloader(link, ytoptions):
audioCodec = 'mp3'

if args.i:
print("Installing Dependencies")
installDep()

if args.a:
Expand Down

0 comments on commit b4ab1d7

Please sign in to comment.