SIMKL / script.simkl

Kodi add-on for Simkl
https://simkl.com/apps/kodi/
GNU General Public License v3.0
40 stars 14 forks source link

Provide ID's #10

Open daviddavo opened 7 years ago

daviddavo commented 7 years ago

Add some method so other add-ons can specify the item ID's

daviddavo commented 6 years ago

There are lots of addons using script.trakt's method, so maybe we should use it.

ids = json.dumps({u'tmdb': 264660, u'imdb': u'tt0470752', u'slug': u'ex-machina-2014', u'trakt': 163375})
xbmcgui.Window(10000).setProperty('script.trakt.ids', ids)
ekleop commented 6 years ago

As I understand, this method adds the ability to scrobble from other addons. Yes, we can develop something like this, can get Simkl ID using http://docs.simkl.apiary.io/#reference/sync/get-items-by-id api method