mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 07:34:13 +01:00
Adding songs to a playlist first read and decoded every song already in it. A playlist that is not loaded now only gains the new keys and stays unloaded: its songs are read when it is opened, and a load already under way starts over because the keys changed. The loved keys and the keys of all playlists are updated in place instead of being rebuilt from every list. Playlist songs get an index on (playlist_id, added_at), the order they are read in, in place of the index on playlist_id alone.