diff --git a/download.py b/download.py index 38f5e07..f94b43e 100644 --- a/download.py +++ b/download.py @@ -1,5 +1,11 @@ -import yt_dlp as yt -from plyer import notification +try: + import yt_dlp as yt + from plyer import notification +except: + import os + script_dir = os.path.dirname(os.path.realpath(__file__)) + print("Please install dependances.\n" + + "This can be done with the command 'pip3 install -r " + script_dir + "/requierments.txt'") def get(yt_url): ytdl_options = {