Compare commits

..

No commits in common. "issue#8" and "master" have entirely different histories.

2 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
try:
import yt_dlp as yt
from notifypy import Notify
from plyer import notification
except:
import os
script_dir = os.path.dirname(os.path.realpath(__file__))
@ -29,10 +29,12 @@ def get(yt_url):
with yt.YoutubeDL(ytdl_options) as ytdl:
ytdl.download(yt_url)
try:
notification = Notify()
notification.title = "yt2mp3"
notification.message = "Download and conversion complete."
notification.send()
notification.notify(
title = "yt2mp3",
message = "Download and conversion complete.",
app_icon = None,
timeout = 3,
)
except:
print("Notification failed.")

View File

@ -1,2 +1,2 @@
yt-dlp
notify-py
plyer