mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2025-01-01 12:25:59 +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") {
|
} else if (this.downloadObject.__type__ === "Collection") {
|
||||||
let tracks = []
|
let tracks = []
|
||||||
|
|
||||||
let q = queue(async (data) => {
|
let q = queue(async (data) => {
|
||||||
let {track, pos} = data
|
let {track, pos} = data
|
||||||
tracks[pos] = await this.downloadWrapper({
|
tracks[pos] = await this.downloadWrapper({
|
||||||
|
@ -143,10 +144,11 @@ class Downloader {
|
||||||
playlistAPI: this.downloadObject.collection.playlistAPI
|
playlistAPI: this.downloadObject.collection.playlistAPI
|
||||||
})
|
})
|
||||||
}, this.settings.queueConcurrency)
|
}, 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})
|
q.push({track, pos})
|
||||||
}
|
})
|
||||||
|
|
||||||
await q.drain()
|
await q.drain()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "deemix",
|
"name": "deemix",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "a barebones deezer downloader library",
|
"description": "a barebones deezer downloader library",
|
||||||
"main": "deemix/index.js",
|
"main": "deemix/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue