From 1b51b3ce8f027f4ba55f2dc0a7aa18fe33821bf5 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 31 May 2021 22:08:27 +0200 Subject: [PATCH] Fixed empty playlist file --- deemix/downloader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deemix/downloader.js b/deemix/downloader.js index 07ab00a..2da5576 100644 --- a/deemix/downloader.js +++ b/deemix/downloader.js @@ -9,7 +9,7 @@ const { TrackFormats } = require('deezer-js') const got = require('got') const fs = require('fs') const { tmpdir } = require('os') -const { queue, each } = require('async') +const { queue, each, eachOf } = require('async') const extensions = { [TrackFormats.FLAC]: '.flac', @@ -528,7 +528,7 @@ class Downloader { let errors = "" let searched = "" - await each(tracks, async (track, i) => { + await eachOf(tracks, async (track, i) => { if (!track) return if (track.error){