From a001184117586684738f7f8783d635de835f9da6 Mon Sep 17 00:00:00 2001 From: obito1903 Date: Wed, 25 Jan 2023 17:17:43 +0100 Subject: [PATCH] typo + more digits for track number --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a08c03b..754c28c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ struct Opt { #[structopt( short = "o", long = "ordered", - help = "Download songs in the order they are in the playlist, prfixing the filename with the track number" + help = "Prefixing the filename with its index in the playlist" )] ordered: bool, } @@ -104,7 +104,7 @@ async fn download_tracks( let full_track_name = format!("{} - {}", artist_name, metadata.track_name); let filename: String; if ordered { - filename = format!("{:02} - {}.flac", i + 1, full_track_name); + filename = format!("{:03} - {}.flac", i + 1, full_track_name); } else { filename = format!("{}.flac", full_track_name); }