Core Machine (Operating system/System info/Roon build number)
Mac OS 11.2.2, Roon 1.8 build 764
Network Details (Including networking gear model/manufacturer and if on WiFi/Ethernet)
Unifi Dream Machine
Audio Devices (Specify what device you’re using and its connection type - USB/HDMI/etc.)
Holo Audio May DAC
Description Of Issue
Duplicate albums are added to the library and resulted in “aliasing” issue.
Steps to reproduce:
I have Qobuz.
- Find an Qobuz album that’s not in your library
- Click the album to go into the album view.
- Click on the 3-dot menu on the right and click Add to a playlist
- Once added to the playlist, go into the playlist and click on the track’s 3-dot menu on the right. Note that I can’t favorite that track. This is normal because the album is not added to the library yet.
- Now, go back to the album. Click the plus icon to add the album to the library.
- Go back to the playlist and click on the 3-dot menu of the track. No favorite icon there.
- Go back to the album we just added to the library. Make sure when you go back to the album, the album has a “heart” instead of a “plus” icon. i.e., it’s added to the library.
- Now add the same track to the playlist.
- Go back to the playlist, the last track added will have a favorite icon/button when you click the 3-dot menu.
So, here is my theory.
Roon probably created two album objects in memory but in real life, I’m referring to the same Qobuz album. The solution is to not clone the album object in memory. If you do, you’d need to keep all of them in-sync. This is the case that needs a reference to the album object instead of treating the album as a value object. Each album in this case has an unique ID and album should be an aggregate/domain object instead of a value object.
Please let me know what else I can provide to help fix this issue. This issue is driving me nuts because I’ll have to remember to add the tracks to the library first before I add them to the playlist or otherwise, if I do it in the wrong order, I wouldn’t be able to “favorite” the track later. Now, I have to go back to my playlist and re-add them to correct the issue on hundreds of tracks.