summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index c104b23..55e1725 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -27,13 +27,11 @@ fn sync(opts: &cli::Options) -> failure::Fallible<()> {
let exporter = exporter::Exporter::new(&db, &lastfm);
let to_fetch = exporter.tracks_to_sync()?;
- println!("need to download {} tracks", to_fetch);
-
let bar = indicatif::ProgressBar::new(to_fetch);
bar.set_style(
indicatif::ProgressStyle::default_bar()
.progress_chars("=> ")
- .template("{percent:>3}% [{wide_bar}] {eta:5}")
+ .template("Downloading {pos}/{len} tracks...\n{percent:>3}% [{wide_bar}] {eta:5}")
);
exporter.sync(|_| { bar.inc(1); })?;