Ready for proper queue implimentations

This commit is contained in:
Ben
2019-01-09 11:39:02 +00:00
parent bf41b3c984
commit 7fe15edc55

View File

@@ -52,9 +52,8 @@ let downloadQueue = [];
module.exports.setupDownloadQueue = async (arr, socket, options) => {
let numOfDownloads;
for (const [key, value] of Object.entries(arr)) {
for (const [key, value] of Object.entries(arr))
if (value.error) delete arr[key];
}
downloadQueue[socket.id] = {
count: 0,
@@ -80,7 +79,7 @@ module.exports.setupDownloadQueue = async (arr, socket, options) => {
}
async function runQueueAsync(socketID) {
// Ready for proper queueuing
}
async function download(video, videoName ,socket, audioOnly, path = './') {