mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
allowing to cancle download_now tasks
This commit is contained in:
parent
51ec765433
commit
c165f152a9
@ -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
|
||||
|
@ -76,6 +76,7 @@ function downloadNow(button) {
|
||||
document.getElementById(youtube_id).remove();
|
||||
setTimeout(function(){
|
||||
handleInterval();
|
||||
buildDownloadIcons();
|
||||
}, 500);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user