JSON-RPC – Get/Set addon settings & Playlist.insert file label

I have two issues bugging me at the moment, I am pretty sure they aren’t part of the API but just throwing them out there in hope someone has solutions.

1. Can you Get and Set addon settings via the API
I was thinking this might be achieved via “Addon.ExecuteAddon” but can’t find a way to do it. I was then thinking that maybe I could add a route in addon.py to do the getting and setting, but that doesn’t feel very elagent. Also looked at “Settings.GetSettings” but it seems to only provide Kodi settings. Having this would be great as a web interface addon could have persistent settings saved to disk rather than relying on a ‘per browser’ local settings which get lost between browsers. It would also allow configuration for the web interface via the kodi UI.

2. Using Playlist.insert with a file object and the resulting playlist label
It seems when playlist insert is called with a file, the resulting label for that item in the playlist is the last part of the uri. So for something like an addon that might have a play uri like “addon://plugin.audio.soundcloud/play?track_id=12345” the resulting label in the playlist is “play” if it was “addon://plugin.audio.soundcloud/play/mysongname?track_id=12345” then would get “mysongname” as the playlist item label. I have a patch for radio to get around this, but patching addons seems like the wrong way of attacking the issue. Ideally Kodi would get the correct label for the URI but can understand why that isn’t reliable (a file url can be anything) however “Player.getItem” seems to not only get the label but the thumbnail, the other option which would be nice would be extending “playlist.insert” so it accepts a “label” parameter so it could be set when adding the file.

[Image: playlist_insert_label.jpg]

Any help would be great!