Fix issue-33

This commit is contained in:
Kepoor Hampond 2017-06-13 17:00:47 -07:00
parent a2852c4ea6
commit beb16da710
2 changed files with 3 additions and 2 deletions

View file

@ -15,6 +15,7 @@ if args.setup:
elif not os.path.isdir(os.path.expanduser("~/.irs")): elif not os.path.isdir(os.path.expanduser("~/.irs")):
print("Please run `irs --setup` to install the youtube-dl and \ print("Please run `irs --setup` to install the youtube-dl and \
ffmpeg binaries.") ffmpeg binaries.")
exit(1)
else: else:
from .ripper import Ripper from .ripper import Ripper
Ripper # PyLinter reasons Ripper # PyLinter reasons

View file

@ -4,8 +4,8 @@ import os
def setup(): def setup():
ydl_binaries.download_ffmpeg("~/.irs/bin") ydl_binaries.download_ffmpeg("~/.irs/bin/")
ydl_binaries.update_ydl("~/.irs/bin") ydl_binaries.update_ydl("~/.irs/bin/")
config_file = os.path.expanduser("~/.irs/config_.py") config_file = os.path.expanduser("~/.irs/config_.py")
if not os.path.isfile(config_file): if not os.path.isfile(config_file):