Songs assigned track number 0 are not handled correctly
Environment
- Lollypop version: 1.4.15
- GTK+ version: 3.24.24
- Operating system: Arch Linux
Bug
Some CDs have a "hidden track 0", which can be reached by rewinding from the start of track 1. Good CD ripping software will also rip this audio and usually will assign it a track number 0 in order to maintain the correct, as-listed track numbering for the rest of the album. For example, I use whipper, which has this behavior.
When imported into Lollypop, this hidden track 0 is listed under a separate album, even though the tags are identical to the rest of the album. It also is numbered inconsistently.
In the "Playing albums" view, the song is correctly listed as being track 0, albeit under a separate album:
In the "Artist" album view, the song is listed as being track 1 on a separate album:
Also notice that in this view, Lollypop lists the 1-track album as having the same overall length as the full album (42 min).
For what it's worth, the shown examples are FLAC files.
Now, obviously, "track 0" is a special case and it's not surprising that some protections are built in against irrational track numbers (e.g. negative values), but nevertheless it is a case that does occur.
Expected Behavior
I would expect this track 0 "Hidden Track One Audio" to appear in the same album as the rest of the songs. I would also expect it to be consistently labeled as track 0 and to be listed before track 1.