Compare commits

..

1 Commits

Author SHA1 Message Date
Davide Polonio d95d262b4d feat: improve formatting output
* duration is now in human readable format
* list of artists is now capped at 140 chars max
2021-11-13 16:35:42 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ async fn main() {
"Track information:\n\
🎵 Track name: {}\n\
🧑🎤 Artist(s): {}\n\
Duration: {}",
Duration: {} second(s)",
info.name,
truncate_with_dots(info.artists.join(", "), MAX_ARTISTS_CHARS),
human_readable_duration(info.duration)