diff --git a/dlaudio.py b/dlaudio.py index b64420d..8965058 100644 --- a/dlaudio.py +++ b/dlaudio.py @@ -8,10 +8,11 @@ Dependencies: import argparse import pathlib +import shutil import subprocess # =========== Constants ========== -YOUTUBE_DL_BIN = '/usr/bin/youtube-dl' +YOUTUBE_DL_BIN = shutil.which('youtube-dl') DEFAULT_FILENAME = f"{pathlib.Path.home()}/Music/%(title)s.%(ext)s" # ========== Error Codes ==========