mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +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"""
|
"""start downloading single vid now"""
|
||||||
youtube_id = self.exec_val
|
youtube_id = self.exec_val
|
||||||
print("downloading: " + youtube_id)
|
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}
|
return {"success": True}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -76,6 +76,7 @@ function downloadNow(button) {
|
|||||||
document.getElementById(youtube_id).remove();
|
document.getElementById(youtube_id).remove();
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
handleInterval();
|
handleInterval();
|
||||||
|
buildDownloadIcons();
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user