Adding tracks to a playlist that hasn't been loaded doesn't work #128
Closed
Description
Looks like nothing happen in such case...
In logs:
2023-01-30 12:41:23,322 MainThread DEBUG: argos.widgets.playlistselectiondialog - Playlist name 'Blues 💙' selected
2023-01-30 12:41:23,325 EventLoopThread DEBUG: argos.message - Dispatching message of type MessageType.SAVE_PLAYLIST
2023-01-30 12:41:23,325 EventLoopThread DEBUG: argos.controllers.playlists - Processing message of type MessageType.SAVE_PLAYLIST
2023-01-30 12:41:23,325 EventLoopThread DEBUG: argos.controllers.playlists - Saving playlist with URI 'm3u:Blues%20%F0%9F%92%99.m3u8'
2023-01-30 12:41:23,326 EventLoopThread DEBUG: argos.ws - Sending JSON-RPC command 366 with method core.playlists.save
2023-01-30 12:41:23,335 EventLoopThread DEBUG: argos.ws - Message without id nor event {'jsonrpc': '2.0', 'id': None, 'error': {'code': -32700, 'message': 'Parse error'}}
The parse error is caused by last_modified
being sent with value equal to -1, due to the playlist not being loaded.
Side dishes
- Title of the playlist deletion dialog contains the name of the playlist. Thus it's length varies and can be looooong...
- Removing selected tracks should not remove all tracks when the selection is empty