mixxxdj / mixxx

Mixxx is Free DJ software that gives you everything you need to perform live mixes.
http://mixxx.org
Other
4.39k stars 1.26k forks source link

# of items in historic playlist isn't adjusted when tracks are deleted from library #13578

Open Eve00000 opened 4 weeks ago

Eve00000 commented 4 weeks ago

Bug Description

number of items in historic playlist isn't adjusted when tracks are deleted from library. A historic playlist can indicate (2) tracks while there aren't tracks in the playlist (displayed) anymore. extra: Merging (jopoining) historic playlists adds the total of the tracks, does not recalculate the real # of items.

Version

main

OS

win 10

ronso0 commented 3 weeks ago

Thanks for the report, I can confirm. While the sidebar update can be fixed, this (again) raises the question how to deal with deleted tracks.

IMHO 'rewriting history' is bad, unless you manually delete a track from a History playlist. I think when purging a track we should keep the entries if that track is in a history playlist. Though it's difficult/cumbersome to

edit Actually the track (ids) are currently kept in the History playlists, but there's no track metadata available anymore, hence the inconsistency between sidebar (playlist tracks count) and tracks view (actual tracks).

Eve00000 commented 3 weeks ago

You 've got a good point there. There should be a difference between automatic changing a historic playlist and manual changing it (fi replacing a lossy track by the lossless version of that track.). Or when you clean up your library and leave 1 version of 2 identical versions of a song. Then you want to replace all occurences of the 'track to delete' with the other one. (In itunes I made scripts for all this possibilities)

Let me think about it please, PS, ADD: A historic playlist should always contain all played songs, even songs that are deleted, then maybe tracks should get a (del) prefix/addendum in title/artist en logically not appear in the library (or maybe in a deleted tracks list)

Eve00000 commented 3 weeks ago

I don't know if this is the right place to write a proposition... (we can always continue on zulip if needed) I would introduce some new Mixxx-special filetypes:

PS: #13580 demands a solution for 'voice' in broadcast-cue files, thixs could be fi a Mixxx-voice type

ronso0 commented 3 weeks ago

Thanks for your ideas, though I think creating files is not the easiest solution, and it's not really related to the "file missing" case here.

All tracks are stored in the database, so what could work would be a new column in the library table that can be set 1 for missing tracks that are in History playlists.

Re: voice/vinyl/aux "tracks" Mixxx could allow storing tracks without attached files. Such tracks could be added automatically (voiceover, aux) or manually (vinyl tracks, notes etc. in playlists), and all metadata incl. duration can be edited. But yeah, this doesn't really belong here, probably better to discuss it in #11727

Eve00000 commented 3 weeks ago

You misunderstood, I meant virtual filetypes, insread of the mp3, wav,... only exissting in the database as records...

ronso0 commented 3 weeks ago

Ah okay. Still, I think the database provides better ways to mark tracks.