Airplay thumbnail and JSON-RPC
#1
When playing via AirTunes, a JSON-RPC query to Kodi for either MusicPlayer.Cover or Player.Art(thumb) seems to return

special://temp/airtunes_album_thumb.jpg

How does one go about forming an URL for retrieving that artwork?

Trying to execute Files.PrepareDownload via JSON-RPC seems like it's successful:

{"id": 5, "jsonrpc": "2.0",
"result": {"details": {"path": "vfs/special%3a%2f%2ftemp%2fairtunes_album_thumb.jpg"}, "mode": "redirect", "protocol": "http"}}


but using that returned path to form the URL

http://10.0.0.188:8080/vfs/special%3a%2f..._thumb.jpg

and attempting to retrieve it just yields a 401 error.

Is there a way to retrieve Airtunes/Airplay cover art remotely via JSON-RPC?

FWIW, the kodi.log file result upon trying that URL is as follows:

2020-10-06 17:23:55.295 T:3391103872 ERROR: Exists - Error checking for /usr/share/kodi/addons/webinterface.default//special://temp/airtunes_album_thumb.jpg
2020-10-06 17:27:27.759 T:3616932736 NOTICE: [Artist Slideshow] script stopped
2020-10-06 17:34:19.125 T:3491611520 ERROR: CWebServer[8080]: failed to handle HTTP request for /vfs


Thanks,
  Matt
Reply
#2
(2020-12-10, 02:40)mblovell Wrote: Is there a way to retrieve Airtunes/Airplay cover art remotely via JSON-RPC?

Adding special://temp as a media source (not just a source within File Manager) appears to have done the trick.
Reply

Logout Mark Read Team Forum Stats Members Help
Airplay thumbnail and JSON-RPC0