2012-12-05, 17:27
hi,
I've a python script wich is used to get subtitles,
but it uses the xbmc.executehttpapi
like this :
I was wondering, by what could I replace this ?
I was trying to use the xbmc.getIMDBnumber()
http://mirrors.xbmc.org/docs/python-docs...IMDBNumber
but I don't really know how to use it.
and I was wondering if was better to use the JSON api or the xbmc class ?
thank you for your time.
I've a python script wich is used to get subtitles,
but it uses the xbmc.executehttpapi
like this :
Code:
# search TVDB's id from tvshow's title
query = 'select c12 from tvshow where c00 = "' + unicode(title) + '" limit 1'
res = xbmc.executehttpapi("queryvideodatabase(" + query + ")")
I was trying to use the xbmc.getIMDBnumber()
http://mirrors.xbmc.org/docs/python-docs...IMDBNumber
but I don't really know how to use it.
and I was wondering if was better to use the JSON api or the xbmc class ?
thank you for your time.