mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-28 18:36:26 +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 got = require('got')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const { tmpdir } = require('os')
|
const { tmpdir } = require('os')
|
||||||
const { queue, each } = require('async')
|
const { queue, each, eachOf } = require('async')
|
||||||
|
|
||||||
const extensions = {
|
const extensions = {
|
||||||
[TrackFormats.FLAC]: '.flac',
|
[TrackFormats.FLAC]: '.flac',
|
||||||
|
@ -528,7 +528,7 @@ class Downloader {
|
||||||
let errors = ""
|
let errors = ""
|
||||||
let searched = ""
|
let searched = ""
|
||||||
|
|
||||||
await each(tracks, async (track, i) => {
|
await eachOf(tracks, async (track, i) => {
|
||||||
if (!track) return
|
if (!track) return
|
||||||
|
|
||||||
if (track.error){
|
if (track.error){
|
||||||
|
|
Loading…
Reference in a new issue