From 2ce90077b63b2e2f6667e378ce83987388a4eac9 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 2 Jan 2022 15:47:32 +0700 Subject: [PATCH] fix notification for nownload now button --- tubearchivist/home/tasks.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tubearchivist/home/tasks.py b/tubearchivist/home/tasks.py index bc8d779..ad43d67 100644 --- a/tubearchivist/home/tasks.py +++ b/tubearchivist/home/tasks.py @@ -106,6 +106,13 @@ def download_single(youtube_id): try: have_lock = my_lock.acquire(blocking=False) if have_lock: + mess_dict = { + "status": "message:download", + "level": "info", + "title": "Download single video", + "message": "processing", + } + RedisArchivist().set_message("message:download", mess_dict) VideoDownloader().run_queue() else: print("Download queue already running.")