Trying to pull song details from Kodi over the LAN via Audio.Details.Song

KODI pillow
Celebrate 20 years of KODI

This post is probably a prelude to a more full review of KODI free open source media player. Right now I some media player hacking to do!! Kodi is one of the only large projects that I was able to actually compile from source, thanks to the excellent and helpful contributors. The codebase is however, a beautiful dumpster fire that keeps me warm and provides great happiness.

Audio.Details.Song? 

Do I need to stimulate the API with say the ID of the currently playing track? Meaning, do some other API call first to gather this data? None of the examples over at https://kodi.wiki/view/JSON-RPC_API/Examples include Audio.Details.Song

 

Kodi websockets API
Trying to pull song details via Audio.Details.Song… but how?

 

 

Greetings!
Can I please have a Wiki account for KODI? My areas of interest:
– improving docs around around music library management
– audio meta data, organising, deleting songs, CDDB, Kodi Remote app on android
– I very much prefer to use the web UI for …. almost everything
– “how to” hit the API to pull song data, for the currently playing track
– by the way – any ideas please? eg How am I supposed to consume the following URL fragment: webui:8080/#lab/api-browser/Audio.Details.Song ?
– do you agree that Audio.Details.Song is a good endpoint to find this out? would that be on port 9090 or 8080 do you think?*
– am keen to add an API endpoint similar to VideoLibrary.RemoveMovie but that can delete songs. I have 100,000 tracks and need to cull them. Presently is a major headache noting the file paths, searching, deleting in filesystem, waiting for SyncThing to update the mirrors etc.

*
https://kodi.wiki/view/JSON-RPC_API/v6#Audio.Details.Song

Hey look – a Send Command button!

Funny how asking for help one often solves the issue by oneself… I just noticed over at https://kodi.wiki/view/JSON-RPC_API there is a bit of a test-bed for this API. It seems to have a form where one can fire off API commands to KODI by typing them into a textarea and hitting Send Command.

Kodi API Application.Quit
tell it an empty array: []
After trying [true] as the instructions say, it wasn’t long before I tried [] – it works. Not sure what [255, [“born”, “formed”, “thumbnail”]] is upto but thankfully the guide to try [] and [255] gets me there. Not sure what the braces format is all about. I guess KODI is trying to be flexible? {songid: 255} ?

Use [] for Application.Quit

Success! I was able to use Application.Quit just now

By sending an empty array: []

Success!
Scroll to Top