You've already forked amazing-ytdlp-archive
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5530179558 |
@@ -209,12 +209,9 @@ def queue():
|
|||||||
get_nosql().queue_emptyQueue()
|
get_nosql().queue_emptyQueue()
|
||||||
flash(f'Queue has been emptied')
|
flash(f'Queue has been emptied')
|
||||||
|
|
||||||
elif task == 'run-download':
|
|
||||||
get_nosql().queue_emptyQueue()
|
|
||||||
flash(f'Queue has been emptied')
|
|
||||||
|
|
||||||
elif task == 'queue-run-once':
|
elif task == 'queue-run-once':
|
||||||
video_queue.delay()
|
task = video_queue.delay()
|
||||||
|
flash(f'Task has been started on the oldest queued item: {task.id}')
|
||||||
|
|
||||||
return redirect(url_for('admin.queue'))
|
return redirect(url_for('admin.queue'))
|
||||||
|
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ class Mango:
|
|||||||
queueItem = self.download_queue.find_one({})
|
queueItem = self.download_queue.find_one({})
|
||||||
if not queueItem:
|
if not queueItem:
|
||||||
return None
|
return None
|
||||||
elif self.check_exists(self, queueItem['id']):
|
elif self.check_exists(queueItem['id']):
|
||||||
self.queue_deleteQueue(queueItem['id'])
|
self.queue_deleteQueue(queueItem['id'])
|
||||||
return queueItem
|
return queueItem
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@
|
|||||||
</form>
|
</form>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<input type="text" value="{{ id.get('id') }}" name="value" hidden>
|
<input type="text" value="{{ id.get('id') }}" name="value" hidden>
|
||||||
<button class="btn-small waves-effect waves-light" type="submit" name="task" value="run-download" title="Run download task" disabled}>⏩</button>
|
<button class="btn-small waves-effect waves-light" type="submit" name="task" value="run-download" title="Run download task" disabled>⏩</button>
|
||||||
<!-- This function fill not work until the download queue and video download process is rewritten -->
|
<!-- This function fill not work until the download queue and video download process is rewritten -->
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user