From ab97128a1ca470ef76ef18f3d7c774ea29be875a Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Tue, 13 Jun 2017 17:00:47 -0700 Subject: [PATCH] Fix issue-33 --- irs/__init__.py | 1 + irs/setup_binaries.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/irs/__init__.py b/irs/__init__.py index d2a9448..2956eee 100644 --- a/irs/__init__.py +++ b/irs/__init__.py @@ -15,6 +15,7 @@ if args.setup: elif not os.path.isdir(os.path.expanduser("~/.irs")): print("Please run `irs --setup` to install the youtube-dl and \ ffmpeg binaries.") + exit(1) else: from .ripper import Ripper Ripper # PyLinter reasons diff --git a/irs/setup_binaries.py b/irs/setup_binaries.py index 1e68581..2a38d0b 100644 --- a/irs/setup_binaries.py +++ b/irs/setup_binaries.py @@ -4,8 +4,8 @@ import os def setup(): - ydl_binaries.download_ffmpeg("~/.irs/bin") - ydl_binaries.update_ydl("~/.irs/bin") + ydl_binaries.download_ffmpeg("~/.irs/bin/") + ydl_binaries.update_ydl("~/.irs/bin/") config_file = os.path.expanduser("~/.irs/config_.py") if not os.path.isfile(config_file):