SEbbaDK / sonica

Music playing daemon and clients, acting as a FOSS party music player alternative to Spotify playlists.
GNU General Public License v3.0
4 stars 0 forks source link

Songs in library can exist multiple times, even if there is only 1 file for the song. #87

Open Rawrior opened 2 years ago

Rawrior commented 2 years ago

In search: image

Actual files: image

SEbbaDK commented 2 years ago

Om guessing the three versions were added in the same session, as i dont think this will happen when loading. We could solve it with a set/hashmap keyed on file path?

Rawrior commented 2 years ago

Om guessing the three versions were added in the same session, as i dont think this will happen when loading. We could solve it with a set/hashmap keyed on file path?

That's true, although the downloader does overwrite the files. I guess the simplest solution would just be to check if there's an identical title+artist in the library already.