mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-28 02:16:08 +00:00
Fixed empty playlist file
This commit is contained in:
parent
e84064aa99
commit
1b51b3ce8f
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue