Looking for a way to get kodi pictures through the API

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
stijndmd Offline
Junior Member
Posts: 1
Joined: Mar 2017
Reputation: 0
Post: #1
Hi all

I'm looking for a way to display pictures (png/jpg) in a table in a angularJS open source remote.
The remote: https://github.com/gabriel-detassigny/kodi-angular

There's lists created already in the remote and I wanted to use the code structure to create a simular list for pictures.
However, I can't seem to find the proper methods on: http://kodi.wiki/view/JSON-RPC_API/v6 to do the trick.

There's some working code for Music, taken from the remote:
artists: function(artistNum, size) {
      var deferred = $q.defer();
      KodiWS.send('AudioLibrary.GetArtists', { properties: ['genre'], sort: { method: 'artist' }, limits: { start: artistNum, end: artistNum + size }}).then(function(data) {
      return deferred.promise;

However, I'm not finding any examples for Pictures here: http://kodi.wiki/view/JSON-RPC_API/Examp...libraries.
Or anywhere else... Tried to achieve something simular via the http://kodi.wiki/view/JSON-RPC_API/v6#Fi...ileDetails method, but alas, no success.

So yeah, if anyone could offer any pointers here, that would be just great.

Thanks in advance.
find quote
ncarthy Offline
Junior Member
Posts: 48
Joined: Aug 2010
Reputation: 0
Location: London
Post: #2
Just use the thumbnail property or the art property:

"properties": ["genre","art","thumbnail"]
find quote