Compare commits

..

1 Commits

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

View File

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