mirror of
https://github.com/cooperhammond/irs.git
synced 2025-01-08 20:05:27 +00:00
init
This commit is contained in:
parent
0b03127786
commit
6df80a2eeb
|
@ -6,8 +6,8 @@ import irs
|
||||||
|
|
||||||
|
|
||||||
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):
|
||||||
|
|
|
@ -204,7 +204,10 @@ class DLog:
|
||||||
# ===========================================
|
# ===========================================
|
||||||
# (It's for the CLI)
|
# (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:
|
if sys.version_info[0] == 2:
|
||||||
def input(string):
|
def input(string):
|
||||||
|
|
Loading…
Reference in a new issue