diff --git a/tubearchivist/home/views.py b/tubearchivist/home/views.py index 633dd03..44c8324 100644 --- a/tubearchivist/home/views.py +++ b/tubearchivist/home/views.py @@ -573,7 +573,10 @@ class PostData: """start downloading single vid now""" youtube_id = self.exec_val print("downloading: " + youtube_id) - download_single.delay(youtube_id=youtube_id) + running = download_single.delay(youtube_id=youtube_id) + task_id = running.id + print("set task id: " + task_id) + set_message("dl_queue_id", task_id, expire=False) return {"success": True} @staticmethod diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js index cdc452e..3acf91c 100644 --- a/tubearchivist/static/script.js +++ b/tubearchivist/static/script.js @@ -76,6 +76,7 @@ function downloadNow(button) { document.getElementById(youtube_id).remove(); setTimeout(function(){ handleInterval(); + buildDownloadIcons(); }, 500); }