Adding a track to a local m3u8 playlist

I’m adding support to Spotmop HTTP Client for the new m3u playlist API. However I’m having trouble identifying how to add tracks to these playlists. I’ve had a look through the playlists.py code and there doesn’t appear to be any methods providing this functionality.

Please tell me that I’m not using my eyes properly!

https://docs.mopidy.com/en/latest/api/core/#mopidy.core.mopidy.core.PlaylistsController

Sample code for saving the current tracklist ($scope.tlTracks) as a playlist:

Great, thanks for those answers.

Just to clarify though, there is no way to add tracks and manipulate an existing playlist without passing the entire updated playlist object?

Nope, currently there’s only save, which takes a full Playlist model. The “editing” part of the playlists API hasn’t had much attention so far, mostly because few clients actually use it. Any ideas for improvements are welcome, of course.