SUMMARY After editing songs' metadata in VLC, Elisa's session restore feature becomes unable to restore those songs on the currently playing playlist when reopening Elisa. STEPS TO REPRODUCE 1. Get an MP3, FLAC, OGG or Opus file [Attachment: test_before_VLC_edit.mp3] 2. Make a copy of this file 3. Open the copy in VLC, Tools -> Media Information -> General tab [Attachment: vlc_edit.png] 4. Edit the metadata, then save it with the "Save Metadata" button [Attachment: test_after_VLC_edit.mp3] 5. Open both files in Elisa [Attachment: before_session_restore.png] 6. Quit Elisa with Hamburger -> Quit 7. Reopen Elisa. It doesn't restore the second song with edited metadata [Attachment: after_session_restore.png] SOFTWARE/OS VERSIONS Operating System: KDE neon 5.22 KDE Plasma Version: 5.22.2 KDE Frameworks Version: 5.83.0 Qt Version: 5.15.3 VLC Version: 3.0.9.2 Vetinari
Created attachment 139705 [details] test_before_VLC_edit.mp3
Created attachment 139706 [details] test_after_VLC_edit.mp3
Created attachment 139707 [details] before_session_restore.png
Created attachment 139708 [details] after_session_restore.png
Created attachment 139709 [details] vlc_edit.png
MediaPlayList::enqueueRestoredEntries() breaks the playlist entries when their restored titles are not empty. VLC autopopulates the title metadata field with the current file name, that's why the repro steps trigger this issue.
The following MR seems to fix this issue. Couldn't test it yet though. https://invent.kde.org/multimedia/elisa/-/merge_requests/308
That merge request fixed my issue.