createalbums.pl contains some logic to store last
artist and last volume (lstArtist, lstVolume) during a
If, at the beginning of the loop, the current artist or
volume does not equal the last artist or volume, it is
assumed that we've collected all of the songs for that
album, and therefore we should create an album. The
problem(s) are the following:
1. if the user only imports a single album, the
CURRENT loop value of genre is null. Therefore, the
album will be created, but the genre will be null.
2. If the users imports two albums, the CURRENT loop
value of genre is equal to the genre value from the
SECOND album's songs when creating the entry in
programs.pl. The second album will again have a null
Solution is to store lstGenre as the other fields.
Log in to post a comment.