The Album class method first_track() is a shortcut to get the first track of an album in order to pull specific metadata like genre.
However, it makes a default assumption, that on an imported library the first disc imported is the first one in a set, and the first track is track number 1. That doesn't work if the source library has MP3s from multiple sources where only one or two songs came across.
There should be a new mechanism to return the first_disc() of an album, and the first available track on that disc. The original first_track() method should stay, but it should be more flexible.
The
Album
class methodfirst_track()
is a shortcut to get the first track of an album in order to pull specific metadata like genre.However, it makes a default assumption, that on an imported library the first disc imported is the first one in a set, and the first track is track number 1. That doesn't work if the source library has MP3s from multiple sources where only one or two songs came across.
There should be a new mechanism to return the
first_disc()
of an album, and the first available track on that disc. The original first_track() method should stay, but it should be more flexible.