fix notification for nownload now button

This commit is contained in:
simon 2022-01-02 15:47:32 +07:00
parent fd334bcafe
commit 2ce90077b6
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -106,6 +106,13 @@ def download_single(youtube_id):
try: try:
have_lock = my_lock.acquire(blocking=False) have_lock = my_lock.acquire(blocking=False)
if have_lock: 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() VideoDownloader().run_queue()
else: else:
print("Download queue already running.") print("Download queue already running.")