mirror of
https://github.com/GuillemCastro/spotify-dl.git
synced 2024-11-21 18:00:26 +01:00
typo + more digits for track number
This commit is contained in:
parent
58125236e1
commit
a001184117
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue