cjcodeproj / musicscan

Python code to examine music files and extract metadata
MIT License
0 stars 0 forks source link

first_track issue #19

Closed cjcodeproj closed 3 months ago

cjcodeproj commented 3 months ago

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.

cjcodeproj commented 3 months ago

Commit:

https://github.com/cjcodeproj/musicscan/commit/f7c6511bda9e0199fc1be26ed38ed540943598ce