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
1 changed files with 7 additions and 0 deletions

View File

@ -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.")