Compare commits

...

1 Commits

Author SHA1 Message Date
d6a7b56bcf Catch for notification
plyer fails on Ubuntu with XFCE
2023-09-15 09:52:20 -04:00

View File

@ -28,12 +28,15 @@ def get(yt_url):
with yt.YoutubeDL(ytdl_options) as ytdl:
ytdl.download(yt_url)
try:
notification.notify(
title = "yt2mp3",
message = "Download and conversion complete.",
app_icon = None,
timeout = 3,
)
except:
print("Notification failed.")