# Path: lib/fs.py
# def check_if_available(prg, msg):
# 
# Path: lib/podium.py
# def get_hostname():
# def get_home_dir():
# def get_username():
# def is_linux():
# def get_distro():
# def get_fingerprint(md5=False):
# def get_short_fingerprint(length=6):
# 
# Path: lib/process.py
# def get_simple_cmd_output(cmd, stderr=STDOUT):
#     """Execute a simple external command and get its output.
# 
#     The command contains no pipes. Error messages are
#     redirected to the standard output by default.
#     """
#     args = shlex.split(cmd)
#     return Popen(args, stdout=PIPE, stderr=stderr).communicate()[0].decode("utf8")


import config as cfg
import os
from lib import fs, podium
from lib.process import get_simple_cmd_output
#!/usr/bin/env python3

"""
Grab a twitch video in mp3.

Usage:
    twitch2mp3 VIDEO_URL
"""




# Path: lib/fs.py
# def check_if_available(prg, msg):
# 
# Path: lib/podium.py
# def get_hostname():
# def get_home_dir():
# def get_username():
# def is_linux():
# def get_distro():
# def get_fingerprint(md5=False):
# def get_short_fingerprint(length=6):
# 
# Path: lib/process.py
# def get_simple_cmd_output(cmd, stderr=STDOUT):
#     """Execute a simple external command and get its output.
# 
#     The command contains no pipes. Error messages are
#     redirected to the standard output by default.
#     """
#     args = shlex.split(cmd)
#     return Popen(args, stdout=PIPE, stderr=stderr).communicate()[0].decode("utf8")


# Path: twitch2mp3.py
import config as cfg
import os
from lib import fs, podium
from lib.process import get_simple_cmd_output

#!/usr/bin/env python3

"""
Grab a twitch video in mp3.

Usage:
    twitch2mp3 VIDEO_URL
"""




fs.check_if_available(cfg.YOUTUBE_DL, "Error: {} is not available!".format(cfg.YOUTUBE_DL))