#8 Artist and Album Info

open
nobody
None
5
2006-02-25
2006-02-25
Peter Cook
No

Can the Artist and Album info be provided with the -l
option? I don't see much value in the Name column as
it's usually the same as the Title. I went ahead and
made the changes in 1.4.7. I can also make the changes
in CVS if desired, just let me know. Here are the changes:

[pete@petescomputer src]$ diff main.c main*orig
787,788c787
< int max_artist_width = strlen("Artist");
< int max_name_width = strlen("Album");
---
> int max_name_width = strlen("Name");
811,812c810
< max_title_width =
max(max_title_width,strlen(tmpf->artist));
< max_name_width =
max(max_name_width,strlen(tmpf->album));
---
> max_name_width =
max(max_name_width,strlen(tmpf->name));
827c825
< header_width = printf("%*s | %*s | %*s | %*s |
%*s:%2s | %*s | %s\n",
---
> header_width = printf("%*s | %*s | %*s %*s:%2s
%*s %s\n",
831,832c829
< max_artist_width, "Artist",
< max_name_width, "Album",
---
> max_name_width, "Name",
852c849
< printf("%*i | %*s | %*s | %*s | %*i:%02i | %*i
| %*i\n",
---
> printf("%*i | %*s | %*s | %*i:%02i %*i %*i\n",
855,856c852
< max_artist_width, tmpf->artist,
< max_name_width, tmpf->album,
---
> max_name_width, tmpf->name,
[pete@petescomputer src]$

Discussion