mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
fix notification for nownload now button
This commit is contained in:
parent
fd334bcafe
commit
2ce90077b6
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user