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

View File

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