Version bump to 0.0.2

This commit is contained in:
RemixDev 2021-04-30 12:10:35 +02:00
parent 5f8589a4d6
commit d84b3b504f
2 changed files with 6 additions and 4 deletions

View file

@ -135,6 +135,7 @@ class Downloader {
})
} else if (this.downloadObject.__type__ === "Collection") {
let tracks = []
let q = queue(async (data) => {
let {track, pos} = data
tracks[pos] = await this.downloadWrapper({
@ -143,10 +144,11 @@ class Downloader {
playlistAPI: this.downloadObject.collection.playlistAPI
})
}, this.settings.queueConcurrency)
for (let pos = 0; pos < this.downloadObject.collection.tracks_gw.length; pos++){
let track = this.downloadObject.collection.tracks_gw[pos]
this.downloadObject.collection.tracks_gw.forEach((track, pos) => {
q.push({track, pos})
}
})
await q.drain()
}

View file

@ -1,6 +1,6 @@
{
"name": "deemix",
"version": "0.0.1",
"version": "0.0.2",
"description": "a barebones deezer downloader library",
"main": "deemix/index.js",
"scripts": {