Skip to content

Commit

Permalink
fix: wrong progress bar start value
Browse files Browse the repository at this point in the history
  • Loading branch information
rombat committed Sep 21, 2022
1 parent 90b4526 commit 3a5e9cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/handlers/MBNDSynchronizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3a5e9cc

Please sign in to comment.