mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-29 10:56:18 +00:00
Version bump to 0.0.2
This commit is contained in:
parent
5f8589a4d6
commit
d84b3b504f
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue