SubmarinerApp / Submariner

A Subsonic client for macOS
https://submarinerapp.com
BSD 3-Clause "New" or "Revised" License
133 stars 4 forks source link

Playlist tracks in data model isn't correct #192

Closed NattyNarwhal closed 3 months ago

NattyNarwhal commented 7 months ago

Tracks are an unordered set in a playlist, which is not quite right. playlistIndex is used as a crutch to deal with that. An ordered set would work, except it precludes duplicate entries of the same track. The corresponding inverse relation isn't quite right iehter, as it's track to single playlist.

See if changing the relations would work. It may involve storing tracks as [Something] transformables.