From e00852bb54b4431679dc52c3637692cdea0517ef Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Sun, 5 Nov 2017 23:09:56 -0800 Subject: [PATCH] Fixed for windows --- irs/utils.py | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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): diff --git a/setup.py b/setup.py index 354c34c..cfcdc11 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name = 'irs', - version = '6.7.4', + version = '6.7.6', description = 'A music downloader that just gets metadata.', url = 'https://github.com/kepoorhampond/irs', author = 'Kepoor Hampond',