From 3a5e9cc8323038f3aeb11bac2ca11556f239ba71 Mon Sep 17 00:00:00 2001 From: Romain Batigne Date: Wed, 21 Sep 2022 16:20:16 +0200 Subject: [PATCH] fix: wrong progress bar start value --- lib/handlers/MBNDSynchronizer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/handlers/MBNDSynchronizer.js b/lib/handlers/MBNDSynchronizer.js index b8ca02b..71181e5 100644 --- a/lib/handlers/MBNDSynchronizer.js +++ b/lib/handlers/MBNDSynchronizer.js @@ -184,7 +184,7 @@ class MBNDSynchronizer { console.log('Processing tracks...'); const progressBar = options.verbose ? null : new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic); - progressBar?.start(musicBeeCollection.length, 1); + progressBar?.start(musicBeeCollection.length, 0); let tracksAnnotations = await Promise.all( musicBeeCollection.map(track => limit(async () => { @@ -330,7 +330,7 @@ class MBNDSynchronizer { console.log('Processing albums...'); const progressBar = options.verbose ? null : new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic); - progressBar?.start(albums.length, 1); + progressBar?.start(albums.length, 0); albumsAnnotations = await Promise.all( albums .filter(album => album.tracks.length) @@ -443,7 +443,7 @@ class MBNDSynchronizer { console.log('Processing artists...'); const progressBar = options.verbose ? null : new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic); - progressBar?.start(artists.length, 1); + progressBar?.start(artists.length, 0); artistsAnnotations = await Promise.all( artists.map(artist => limit(async () => {