2013-07-30, 00:42
Hello.
I'm writing an addon that interfaces with an OAuth API. This API allows me to list and download videos, and also to obtain their thumbnails.
While populating ListItems I was thinking of supplying XBMC with pre-authed URLs as the 'thumbnail' attribute, but it seems XBMC does multiple requests to this resource (HEAD, followed by two GETs). Since OAuth authorizations carry a nonce, after the first request all the others will fail.
What would be the best approach to solve this issue? I was thinking of downloading all the thumbs of that page and supply local file:// URLs, but loading all the thumbs is a slow process to do before rendering the page. Also, where would I store all these thumbnails?
Thanks for the help.
I'm writing an addon that interfaces with an OAuth API. This API allows me to list and download videos, and also to obtain their thumbnails.
While populating ListItems I was thinking of supplying XBMC with pre-authed URLs as the 'thumbnail' attribute, but it seems XBMC does multiple requests to this resource (HEAD, followed by two GETs). Since OAuth authorizations carry a nonce, after the first request all the others will fail.
What would be the best approach to solve this issue? I was thinking of downloading all the thumbs of that page and supply local file:// URLs, but loading all the thumbs is a slow process to do before rendering the page. Also, where would I store all these thumbnails?
Thanks for the help.