From 6df80a2eebeacf3aed965652ce81df71d98e0094 Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Tue, 3 Oct 2017 03:34:40 -0700 Subject: [PATCH] init --- irs/setup_binaries.py | 4 ++-- irs/utils.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/irs/setup_binaries.py b/irs/setup_binaries.py index 7997b36..76d55c0 100644 --- a/irs/setup_binaries.py +++ b/irs/setup_binaries.py @@ -6,8 +6,8 @@ import irs 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): diff --git a/irs/utils.py b/irs/utils.py index 61b43a3..32830fa 100644 --- a/irs/utils.py +++ b/irs/utils.py @@ -204,7 +204,10 @@ class DLog: # =========================================== # (It's for the CLI) -COLS = int(os.popen('tput cols').read().strip("\n")) +try: + COLS = int(os.popen('tput cols').read().strip("\n")) +except: + COLS = 80 if sys.version_info[0] == 2: def input(string):